#include <sdl-mixer.h>
Public Member Functions | |
virtual void | init () |
virtual void | suspendAudio () |
virtual int | resumeAudio () |
Public Member Functions inherited from MixerManager | |
Audio::Mixer * | getMixer () |
virtual bool | isNullDevice () const |
Protected Member Functions | |
virtual SDL_AudioSpec | getAudioSpec (uint32 rate) |
virtual void | startAudio () |
virtual void | callbackHandler (byte *samples, int len) |
Static Protected Member Functions | |
static void | sdlCallback (void *this_, byte *samples, int len) |
Protected Attributes | |
SDL_AudioSpec | _obtained |
bool | _isSubsystemInitialized |
bool | _isAudioOpen |
Protected Attributes inherited from MixerManager | |
Audio::MixerImpl * | _mixer |
bool | _audioSuspended |
SDL mixer manager. It wraps the actual implementation of the Audio:Mixer used by the engine, and setups the SDL audio subsystem and the callback for the audio mixer implementation.
|
virtual |
Initialize and setups the mixer
Implements MixerManager.
|
virtual |
Pauses the audio system
Implements MixerManager.
|
virtual |
Resumes the audio system
Implements MixerManager.
|
protectedvirtual |
Returns the desired audio specification
|
protectedvirtual |
Starts SDL audio
|
protectedvirtual |
Handles the audio callback
|
staticprotected |
The mixer callback entry point. Static functions can't be overridden by subclasses, so it invokes the non-static function callbackHandler()
|
protected |
The obtained audio specification after opening the audio system.