src/media/audio/audio_core/mixer/test/mixer_tests_shared.cc
// Just as Mixers convert audio into our accumulation format, OutputProducer
// objects exist to convert frames of audio from accumulation format into
// destination format. They perform no SRC, gain scaling or rechannelization, so
// frames_per_second is unimportant and num_channels is only needed so that they
// can calculate the size of a (multi-channel) audio frame.
Just as Mixers convert audio into our accumulation format, OutputProducer
objects exist to convert frames of audio from accumulation format into
destination format. They perform no SRC, gain scaling or rechannelization, so
frames_per_second is unimportant and num_channels is only needed so that they
can calculate the size of a (multi-channel) audio frame.
Just as Mixers convert audio into our accumulation format OutputProducer objects exist to convert frames of audio from accumulation format into destination format . They perform no SRC gain scaling or rechannelization so frames_per_second is unimportant and num_channels is only needed so that they can calculate the size of a ( multi - channel ) audio frame .
std::unique_ptr<OutputProducer> SelectOutputProducer(fuchsia::media::AudioSampleFormat dest_format,
                                                     uint32_t num_channels) {
  fuchsia::media::AudioStreamType dest_details;
  dest_details.sample_format = dest_format;
  dest_details.channels = num_channels;
  dest_details.frames_per_second = 48000;
  return OutputProducer::Select(dest_details);
}
std :: unique_ptr < OutputProducer > SelectOutputProducer ( fuchsia :: media :: AudioSampleFormat dest_format , uint32_t num_channels ) { fuchsia :: media :: AudioStreamType dest_details ; dest_details . sample_format = dest_format ; dest_details . channels = num_channels ; dest_details . frames_per_second = 48000 ; return OutputProducer :: Select ( dest_details ) ; }
Just as Mixers convert audio into our accumulation format, OutputProducer
objects exist to convert frames of audio from accumulation format into
destination format.
Just as Mixers convert audio into our accumulation format OutputProducer objects exist to convert frames of audio from accumulation format into destination format .