class HermeticPipelineTest

Defined at line 18 of file ../../src/media/audio/audio_core/testing/integration/hermetic_pipeline_test.h

This class defines a framework for standard tests of an output pipeline. After feeding an

arbitrary input signal through the pipeline and capturing the output, this framework can ensure

that the output meets specific criteria -- for example, meets an expected frequency profile.

Public Members

static bool save_input_and_output_files_

Public Methods

void TearDown ()

Defined at line 20 of file ../../src/media/audio/audio_core/testing/integration/hermetic_pipeline_test.h

template <fuchsia::media::AudioSampleFormat SampleFormat>
void WriteWavFile (const std::string & test_name, const std::string & file_name_suffix, AudioBufferSlice<SampleFormat> slice)

Defined at line 55 of file ../../src/media/audio/audio_core/testing/integration/hermetic_pipeline_test.cc

size_t AddSlackToOutputFrames (size_t expected_output_frames)

Each test can compute a precise number of expected output frames given the number of

input frames. Our device ring buffer includes more frames than necessary so that, in

case we write too many output frames due to a bug, we'll have plenty of space without

wrapping around. This helps more easily detect such bugs.

Defined at line 77 of file ../../src/media/audio/audio_core/testing/integration/hermetic_pipeline_test.h

Enumerations

enum RenderPath
Name Value
Communication 0
Media 1
Ultrasound 2

The three render paths present in common effects configurations.

Defined at line 29 of file ../../src/media/audio/audio_core/testing/integration/hermetic_pipeline_test.h

Records