Skip to content

MockAudioBackend ​

Class

Source: MockAudioBackend.h

Inherits from: AudioBackend

Description ​

Mock implementation of AudioBackend for unit testing.

This mock captures initialization state and provides test hooks for verifying AudioScheduler and AudioEngine interactions.

Inheritance ​

AudioBackend → MockAudioBackend

Methods ​

void init(AudioEngine* engine, const platforms::PlatformCapabilities& caps) ​

int getSampleRate() const ​

bool wasInitCalled() const ​

AudioEngine* getEngine() const ​

const platforms::PlatformCapabilities& getCaps() const ​

void reset() ​

Released under the MIT License.