class OutputProducer

Defined at line 17 of file ../../src/media/audio/audio_core/mixer/output_producer.h

Public Methods

std::unique_ptr<OutputProducer> Select (const fuchsia::media::AudioStreamType & output_format)

Defined at line 37 of file ../../src/media/audio/audio_core/mixer/output_producer.cc

void ProduceOutput (const float * source_ptr, void * dest_void_ptr, int64_t frames)

Take frames of audio from the source intermediate buffer and convert them

to the proper sample format for the output buffer, clipping the audio as

needed in the process.

Parameters

source_ptr A pointer to the normalized frames of audio to use as the source.
dest_void_ptr A pointer to the destination buffer whose frames match the format described by output_format during the call to Select.
frames The number of frames to produce.

Defined at line 28 of file ../../src/media/audio/audio_core/mixer/output_producer.cc

void FillWithSilence (void * dest_void_ptr, int64_t frames)

Fill a destination buffer with silence.

Parameters

dest_void_ptr A pointer to the destination buffer whose frames match the format described by output_format during the call to Select.
frames The number of frames to produce.

Defined at line 33 of file ../../src/media/audio/audio_core/mixer/output_producer.cc

void OutputProducer (const ::media_audio::Format & dest_format, int32_t bytes_per_sample)

Implementation detail. Use Select.

Defined at line 22 of file ../../src/media/audio/audio_core/mixer/output_producer.cc

int32_t channels ()

Defined at line 50 of file ../../src/media/audio/audio_core/mixer/output_producer.h

int32_t bytes_per_sample ()

Defined at line 51 of file ../../src/media/audio/audio_core/mixer/output_producer.h

int32_t bytes_per_frame ()

Defined at line 52 of file ../../src/media/audio/audio_core/mixer/output_producer.h