ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

SDL mixer manager. More...

#include <sdl-mixer.h>

Inheritance diagram for SdlMixerManager:
Collaboration diagram for SdlMixerManager:

List of all members.

Public Member Functions

virtual ~SdlMixerManager ()
virtual void init ()
 Initialize and setups the mixer.
virtual void suspendAudio ()
 Pauses the audio system.
virtual int resumeAudio ()
 Resumes the audio system.

Protected Member Functions

virtual SDL_AudioSpec getAudioSpec (uint32 rate)
 Returns the desired audio specification.
virtual void startAudio ()
 Starts SDL audio.
virtual void callbackHandler (byte *samples, int len)
 Handles the audio callback.

Static Protected Member Functions

static void sdlCallback (void *this_, byte *samples, int len)
 The mixer callback entry point.

Protected Attributes

SDL_AudioSpec _obtained
 The obtained audio specification after opening the audio system.

Detailed Description

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.

Definition at line 35 of file sdl-mixer.h.


Constructor & Destructor Documentation

SdlMixerManager::~SdlMixerManager (  )  [virtual]

Definition at line 41 of file sdl-mixer.cpp.


Member Function Documentation

void SdlMixerManager::callbackHandler ( byte samples,
int  len 
) [protected, virtual]

Handles the audio callback.

Definition at line 187 of file sdl-mixer.cpp.

SDL_AudioSpec SdlMixerManager::getAudioSpec ( uint32  rate  )  [protected, virtual]

Returns the desired audio specification.

Definition at line 139 of file sdl-mixer.cpp.

void SdlMixerManager::init (  )  [virtual]

Initialize and setups the mixer.

Implements MixerManager.

Definition at line 49 of file sdl-mixer.cpp.

int SdlMixerManager::resumeAudio (  )  [virtual]

Resumes the audio system.

Implements MixerManager.

Definition at line 204 of file sdl-mixer.cpp.

void SdlMixerManager::sdlCallback ( void *  this_,
byte samples,
int  len 
) [static, protected]

The mixer callback entry point.

Static functions can't be overrided by subclasses, so it invokes the non-static function callbackHandler()

Definition at line 192 of file sdl-mixer.cpp.

void SdlMixerManager::startAudio (  )  [protected, virtual]

Starts SDL audio.

Definition at line 182 of file sdl-mixer.cpp.

void SdlMixerManager::suspendAudio (  )  [virtual]

Pauses the audio system.

Implements MixerManager.

Definition at line 199 of file sdl-mixer.cpp.


Member Data Documentation

SDL_AudioSpec SdlMixerManager::_obtained [protected]

The obtained audio specification after opening the audio system.

Definition at line 61 of file sdl-mixer.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 19 2020 05:04:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge