Home
last modified time | relevance | path

Searched refs:target_number_of_channels (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/modules/audio_mixer/
Daudio_frame_manipulator.cc58 void RemixFrame(size_t target_number_of_channels, AudioFrame* frame) { in RemixFrame() argument
59 RTC_DCHECK_GE(target_number_of_channels, 1); in RemixFrame()
61 if (frame->num_channels() == target_number_of_channels) { in RemixFrame()
69 if (target_number_of_channels < 3 && frame->num_channels() < 3) { in RemixFrame()
70 if (frame->num_channels() > target_number_of_channels) { in RemixFrame()
71 AudioFrameOperations::DownmixChannels(target_number_of_channels, frame); in RemixFrame()
73 AudioFrameOperations::UpmixChannels(target_number_of_channels, frame); in RemixFrame()
81 GuessChannelLayout(target_number_of_channels)); in RemixFrame()
87 RTC_DCHECK_EQ(frame->num_channels(), target_number_of_channels) in RemixFrame()
89 << target_number_of_channels; in RemixFrame()
Daudio_frame_manipulator.h29 void RemixFrame(size_t target_number_of_channels, AudioFrame* frame);
/external/webrtc/audio/utility/
Daudio_frame_operations.cc157 void AudioFrameOperations::UpmixChannels(size_t target_number_of_channels, in UpmixChannels() argument
160 RTC_DCHECK_LE(frame->samples_per_channel_ * target_number_of_channels, in UpmixChannels()
164 frame->samples_per_channel_ * target_number_of_channels > in UpmixChannels()
173 for (size_t j = 0; j < target_number_of_channels; ++j) { in UpmixChannels()
174 frame->mutable_data()[target_number_of_channels * i + j] = in UpmixChannels()
179 frame->num_channels_ = target_number_of_channels; in UpmixChannels()
Daudio_frame_operations.h76 static void UpmixChannels(size_t target_number_of_channels,