template <fuchsia::media::AudioSampleFormat SampleType>

class AudioRendererPipelineTest

Defined at line 24 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

Protected Members

static duration kPacketLength
static const int64_t kNumPacketsInPayload
static const int64_t kFramesPerPacketForDisplay
static const int64_t kToleranceInPackets
static const int64_t kSincSamplerHalfFilterWidth
static duration kVolumeRampDuration
static const int32_t kFrameRate
static const auto kPacketFrames
static audio_stream_unique_id kUniqueId
static const int32_t kOutputFrameRate
static const int32_t kNumChannels

Protected Methods

void SetUpTestSuite ()

Defined at line 41 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

void AudioRendererPipelineTest<SampleType> ()

Defined at line 79 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

void SetUp ()

Defined at line 81 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

void TearDown ()

Defined at line 88 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

int64_t PacketsToFrames (int64_t num_packets, int32_t frame_rate)

Defined at line 102 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

std::pair<AudioRendererShim<SampleType> *, TypedFormat<SampleType>> CreateRenderer (int32_t frame_rate, fuchsia::media::AudioRenderUsage2 usage)

Defined at line 108 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

std::pair<int64_t, int64_t> NumPacketsAndFramesPerBatch (AudioRendererShim<SampleType> * renderer)

All pipeline tests send batches of packets. This method returns the suggested size for

each batch. We want each batch to be large enough such that the output driver needs to

wake multiple times to mix the batch -- this ensures we're testing the timing paths in

the driver. We don't have direct access to the driver's timers, however, we know that

the driver must wake up at least once every MinLeadTime. Therefore, we return enough

packets to exceed one MinLeadTime.

Defined at line 123 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

const TypedFormat<SampleType> & format ()

Defined at line 134 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

VirtualOutput<SampleType> * output ()

Defined at line 135 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h

AudioRendererShim<SampleType> * renderer ()

Defined at line 136 of file ../../src/media/audio/audio_core/test/api/audio_renderer_pipeline_test_shared.h