
#include <proAudioSdl.h>
Inheritance diagram for DeviceAudioSdl:

Public Member Functions | |
| virtual unsigned int | sampleFromMemory (const AudioSample &sample, float volume=1.0f) |
| virtual bool | sampleDestroy (unsigned int sample) |
| virtual unsigned int | soundPlay (unsigned int sample, float volumeL=1.0f, float volumeR=1.0f, float disparity=0.0f, float pitch=1.0f) |
| virtual unsigned int | soundLoop (unsigned int sample, float volumeL=1.0f, float volumeR=1.0f, float disparity=0.0f, float pitch=1.0f) |
| virtual bool | soundUpdate (unsigned int sound, float volumeL, float volumeR, float disparity=0.0f, float pitch=1.0f) |
| virtual bool | soundStop (unsigned int sound) |
| virtual void | soundStop () |
| virtual unsigned int | soundActive () const |
Static Public Member Functions | |
| static DeviceAudio * | create (unsigned int nTracks=8, unsigned int frequency=22050, unsigned int chunkSize=1024) |
Protected Member Functions | |
| DeviceAudioSdl (unsigned int nTracks, unsigned int frequency, unsigned int chunkSize) | |
| virtual | ~DeviceAudioSdl () |
| void | mixOutputFloat (signed short *outputBuffer, unsigned int nFrames) |
| void | mixOutputSInt (Uint8 *stream, int len) |
Static Protected Member Functions | |
| static void | cbOutput (void *userData, Uint8 *stream, int len) |
Protected Attributes | |
| SDL_AudioSpec | m_spec |
| std::map< unsigned int, _AudioTrack > | mm_sample |
| unsigned int | m_sampleCounter |
| bool | m_isDesiredFormat |
| _AudioTrack * | ma_sound |
| unsigned int | m_nSound |
|
||||||||||||||||
|
constructor. Use the create() method instead
|
|
|
destructor. Use the destroy() method instead
|
|
||||||||||||||||
|
output callback
|
|
||||||||||||||||
|
creates audio device Use this method instead of a constructor.
|
|
||||||||||||
|
advanced mixer method
|
|
||||||||||||
|
fallback mixer method
|
|
|
deletes a previously created sound sample resource identified by its handle
Implements DeviceAudio. |
|
||||||||||||
|
converts a sound sample to internal audio format, returns handle
Implements DeviceAudio. |
|
|
returns number of currently active sounds
Implements DeviceAudio. |
|
||||||||||||||||||||||||
|
plays a specified sample continuously and sets its parameters
Implements DeviceAudio. |
|
||||||||||||||||||||||||
|
plays a specified sample once and sets its parameters
Implements DeviceAudio. |
|
|
stops all sounds immediately
Implements DeviceAudio. |
|
|
stops a specified sound immediately
Implements DeviceAudio. |
|
||||||||||||||||||||||||
|
updates parameters of a specified sound
Implements DeviceAudio. |
|
|
stores whether obtained audio format corresponds to expectations
|
|
|
stores number of parallel tracks
|
|
|
stores maximum sample id
|
|
|
stores audio specification
|
|
|
stores sounds to be mixed
|
|
|
stores loaded sound samples
|
| © 2009-02-04 by Gerald Franz, www.viremo.de | impressum |