Lines Matching defs:index

145 echo_create_group_control(multi_dev *multi, uint32 *index, int32 parent,
147 uint32 i = *index;
148 (*index)++;
161 echo_create_channel_control(multi_dev *multi, uint32 *index, int32 parent, int32 string,
163 uint32 i = *index, id;
209 *index = i;
216 uint32 i = 0, index = 0, parent, parent2;
219 parent = echo_create_group_control(multi, &index, 0, S_OUTPUT, NULL);
226 parent2 = echo_create_group_control(multi, &index, parent, S_null, "Output");
228 echo_create_channel_control(multi, &index, parent2, 0, channel,
232 parent = echo_create_group_control(multi, &index, 0, S_INPUT, NULL);
238 parent2 = echo_create_group_control(multi, &index, parent, S_null, "Input");
240 echo_create_channel_control(multi, &index, parent2, 0, channel,
244 multi->control_count = index;
431 uint32 index, i, designations;
443 index = 0;
457 chans[index].channel_id = index;
458 chans[index].kind = (mode == ECHO_USE_PLAY) ? B_MULTI_OUTPUT_CHANNEL : B_MULTI_INPUT_CHANNEL;
459 chans[index].designations = designations | chan_designations[i];
460 chans[index].connectors = 0;
461 index++;
466 multi->output_channel_count = index;
468 multi->input_channel_count = index - multi->output_channel_count;
472 chans[index].channel_id = index;
473 chans[index].kind = B_MULTI_OUTPUT_BUS;
474 chans[index].designations = B_CHANNEL_LEFT | B_CHANNEL_STEREO_BUS;
475 chans[index].connectors = B_CHANNEL_MINI_JACK_STEREO;
476 index++;
478 chans[index].channel_id = index;
479 chans[index].kind = B_MULTI_OUTPUT_BUS;
480 chans[index].designations = B_CHANNEL_RIGHT | B_CHANNEL_STEREO_BUS;
481 chans[index].connectors = B_CHANNEL_MINI_JACK_STEREO;
482 index++;
484 multi->output_bus_channel_count = index - multi->output_channel_count
487 chans[index].channel_id = index;
488 chans[index].kind = B_MULTI_INPUT_BUS;
489 chans[index].designations = B_CHANNEL_LEFT | B_CHANNEL_STEREO_BUS;
490 chans[index].connectors = B_CHANNEL_MINI_JACK_STEREO;
491 index++;
493 chans[index].channel_id = index;
494 chans[index].kind = B_MULTI_INPUT_BUS;
495 chans[index].designations = B_CHANNEL_RIGHT | B_CHANNEL_STEREO_BUS;
496 chans[index].connectors = B_CHANNEL_MINI_JACK_STEREO;
497 index++;
499 multi->input_bus_channel_count = index - multi->output_channel_count