49 void DoPlay(
const uint8_t* buf,
size_t len)
override;
52 SDL_AudioDeviceID mDevice = 0;
53 int32_t mNumChannels = 2;
Abstract base class for platform-specific audio output backends.
Definition AudioPlayer.h:32
AudioPlayer implementation backed by SDL2's audio subsystem.
Definition SDLAudioPlayer.h:15
int Buffered() override
Returns the number of audio frames currently queued in the SDL audio device.
void DoClose() override
Closes the SDL audio device and releases its resources.
SDLAudioPlayer(AudioSettings settings)
Constructs an SDLAudioPlayer with the given audio settings.
Definition SDLAudioPlayer.h:21
void DoPlay(const uint8_t *buf, size_t len) override
Queues interleaved PCM samples to the SDL audio device.
bool DoInit() override
Opens the SDL audio device with the configured settings.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
Configuration parameters shared by all AudioPlayer backends.
Definition AudioPlayer.h:14