Lines Matching refs:channel

285 		&& channel->fPreferredFormat.u.raw_audio.format == media_raw_audio_format::B_AUDIO_SHORT)
486 //GetFormat(&channel->fInput.format);
564 node_output *channel = FindOutput(output);
567 if (channel == NULL)
576 *format = channel->fPreferredFormat;
600 node_output *channel = (node_output *)fOutputs.ItemAt(*cookie);
601 *out_output = channel->fOutput;
621 node_output *channel = FindOutput(for_source);
624 if (channel == NULL)
631 if (newGroup == channel->fBufferGroup) return B_OK;
639 delete channel->fBufferGroup; // waits for all buffers to recycle
643 channel->fBufferGroup = newGroup;
649 size_t size = channel->fOutput.format.u.raw_audio.buffer_size;
651 channel->fBufferGroup = new BBufferGroup(size, count);
667 node_output *channel = FindOutput(what);
670 if (channel == NULL)
677 if (channel->fOutput.destination != media_destination::null)
704 channel->fOutput.destination = where;
705 channel->fOutput.format = *format;
706 *out_source = channel->fOutput.source;
707 strncpy(out_name, channel->fOutput.name, B_MEDIA_NAME_LENGTH);
716 node_output *channel = FindOutput(source);
719 if (channel == NULL)
730 channel->fOutput.destination = media_destination::null;
731 channel->fOutput.format = channel->fPreferredFormat;
737 channel->fOutput.destination = destination;
738 channel->fOutput.format = format;
739 strncpy(io_name, channel->fOutput.name, B_MEDIA_NAME_LENGTH);
742 bigtime_t duration = channel->fOutput.format.u.raw_audio.buffer_size * 10000
743 / ( (channel->fOutput.format.u.raw_audio.format & media_raw_audio_format::B_AUDIO_SIZE_MASK)
744 * channel->fOutput.format.u.raw_audio.channel_count)
745 / ((int32)(channel->fOutput.format.u.raw_audio.frame_rate / 100));
752 FindLatencyFor(channel->fOutput.destination, &fLatency, &id);
763 if (!channel->fBufferGroup)
764 AllocateBuffers(*channel);
775 node_output *channel = FindOutput(what);
778 if (channel == NULL)
785 if ((where == channel->fOutput.destination) && (what == channel->fOutput.source))
787 channel->fOutput.destination = media_destination::null;
788 channel->fOutput.format = channel->fPreferredFormat;
789 delete channel->fBufferGroup;
790 channel->fBufferGroup = NULL;
795 what.id, where.id, channel->fOutput.source.id, channel->fOutput.destination.id);
804 node_output *channel = FindOutput(what);
807 if (channel == NULL)
854 node_output *channel = FindOutput(what);
856 if (channel != NULL)
858 channel->fOutputEnabled = enabled;