38 void DoPlay(
const uint8_t* buf,
size_t len)
override;
Abstract base class for platform-specific audio output backends.
Definition AudioPlayer.h:32
A no-op AudioPlayer used when no audio device is available or audio is disabled.
Definition NullAudioPlayer.h:15
int Buffered() override
Returns the desired buffered frame count so the game always produces audio.
void DoPlay(const uint8_t *buf, size_t len) override
Silently discards all audio data.
void DoClose() override
No-op — nothing to close.
NullAudioPlayer(AudioSettings settings)
Constructs a NullAudioPlayer with the given audio settings.
Definition NullAudioPlayer.h:21
bool DoInit() override
Always returns true — no actual device needs to be opened.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
Configuration parameters shared by all AudioPlayer backends.
Definition AudioPlayer.h:14