22#ifndef SDL2PP_AUDIODEVICE_HH
23#define SDL2PP_AUDIODEVICE_HH
29#include <SDL_version.h>
31#include <SDL2pp/Optional.hh>
32#include <SDL2pp/Config.hh>
33#include <SDL2pp/Export.hh>
167 SDL_AudioDeviceID device_id_;
178 static void SDLCallback(
void *userdata, Uint8* stream,
int len);
261 SDL_AudioDeviceID Get()
const;
283 SDL_AudioStatus GetStatus()
const;
309#if SDL_VERSION_ATLEAST(2, 0, 4)
323 AudioDevice& QueueAudio(
const void* data, Uint32 len);
343 Uint32 GetQueuedAudioSize()
const;
SDL2pp::AudioDevice lock.
Definition: AudioDevice.hh:86
Audio device.
Definition: AudioDevice.hh:50
AudioDevice(const AudioDevice &)=delete
Deleted copy constructor.
std::function< void(Uint8 *stream, int len)> AudioCallback
Function type for audio callback.
Definition: AudioDevice.hh:164
AudioDevice & operator=(const AudioDevice &)=delete
Deleted assignment operator.
Audio format specification.
Definition: AudioSpec.hh:46