class MixStageTest

Defined at line 51 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

Protected Members

RefPtr timeline_function_
shared_ptr mix_stage_
shared_ptr device_clock_
shared_ptr clone_of_device_clock_
static const uint32_t kBlockSizeFrames

Protected Methods

void SetUp ()

Defined at line 55 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

int64_t duration_to_frames (zx::duration delta)

Defined at line 68 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

template <typename T, size_t N>
std::array<T, N> & as_array (void * ptr, size_t offset)

Views the memory at |ptr| as a std::array of |N| elements of |T|. If |offset| is provided, it

is the number of |T| sized elements to skip at the beginning of |ptr|.

It is entirely up to the caller to ensure that values of |T|, |N|, and |offset| are chosen to

not overflow |ptr|.

Defined at line 82 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

void ValidateIsPointSampler (const std::shared_ptr<Mixer> & should_be_point)

Defined at line 92 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

void ValidateIsSincSampler (const std::shared_ptr<Mixer> & should_be_sinc)

Defined at line 98 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc

std::shared_ptr<Clock> SetPacketFactoryWithOffsetAudioClock (zx::duration clock_offset, testing::PacketFactory & factory)

TODO(https://fxbug.dev/42127037): Verify we can read from mix stages with unaligned frames.

Defined at line 197 of file ../../src/media/audio/audio_core/mix_stage_unittest.cc