22 #ifndef BACKENDS_MIXER_SDL_H 23 #define BACKENDS_MIXER_SDL_H 25 #include "backends/platform/sdl/sdl-sys.h" 26 #include "backends/mixer/mixer.h" 82 static void sdlCallback(
void *this_, byte *samples,
int len);
83 #if SDL_VERSION_ATLEAST(3, 0, 0) 84 static void sdl3Callback(
void *userdata, SDL_AudioStream *stream,
int additional_amount,
int total_amount);
87 bool _isSubsystemInitialized;
90 #if SDL_VERSION_ATLEAST(3, 0, 0) 91 SDL_AudioStream *_stream =
nullptr;
virtual int resumeAudio()
static void sdlCallback(void *this_, byte *samples, int len)
virtual void callbackHandler(byte *samples, int len)
SDL_AudioSpec _obtained
Definition: sdl-mixer.h:61
virtual void suspendAudio()
virtual void startAudio()
Definition: sdl-mixer.h:34
virtual SDL_AudioSpec getAudioSpec(uint32 rate)