
#include <proAudio.h>
Inheritance diagram for DeviceAudio:

Public Member Functions | |
| void | volume (float left, float right) |
| void | volume (float leftAndRight) |
| bool | loaderRegister (AudioSample *(*loadFunc)(const std::string &), const std::string &suffix) |
| bool | loaderAvailable (const std::string &suffix) const |
| virtual unsigned int | sampleFromFile (const std::string &filename, float volume=1.0f) |
| virtual unsigned int | sampleFromMemory (const AudioSample &sample, float volume=1.0f)=0 |
| virtual bool | sampleDestroy (unsigned int sample)=0 |
| virtual const AudioSample * | sample (unsigned int handle) const |
| virtual unsigned int | soundPlay (unsigned int sample, float volumeL=1.0f, float volumeR=1.0f, float disparity=0.0f, float pitch=1.0f)=0 |
| virtual unsigned int | soundLoop (unsigned int sample, float volumeL=1.0f, float volumeR=1.0f, float disparity=0.0f, float pitch=1.0f)=0 |
| virtual bool | soundUpdate (unsigned int sound, float volumeL, float volumeR, float disparity=0.0f, float pitch=1.0f)=0 |
| virtual bool | soundStop (unsigned int sound)=0 |
| virtual void | soundStop ()=0 |
| virtual unsigned int | soundActive () const =0 |
Static Public Member Functions | |
| static DeviceAudio & | singleton () |
| static void | destroy () |
Protected Member Functions | |
| DeviceAudio () | |
| virtual | ~DeviceAudio () |
Protected Attributes | |
| unsigned int | m_freqOut |
| float | m_volL |
| float | m_volR |
| std::map< std::string, AudioSample *(*)(const std::string &)> | mm_loader |
Static Protected Attributes | |
| static DeviceAudio * | s_instance |
|
|
constructor
|
|
|
destructor
|
|
|
calls the destructor of the singleton object
|
|
|
returns true in case a loader for this file type is available
|
|
||||||||||||
|
registers an audio sample loader function handling a file type identified by suffix The function has to be of type AudioSample * loadXYZ(const std::string & filename). |
|
|
allows read access to a sample identified by its handle
Reimplemented in DeviceAudioRt. |
|
|
deletes a previously created sound sample resource identified by its handle
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
||||||||||||
|
loads a sound sample from file, optionally adjusts volume, returns handle
|
|
||||||||||||
|
converts a sound sample to internal audio format, returns handle
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
|
returns singleton object This call is only allowed after a successful precedent creation of an audio device |
|
|
returns number of currently active sounds
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
||||||||||||||||||||||||
|
plays a specified sound sample continuously and sets its parameters
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
||||||||||||||||||||||||
|
plays a specified sound sample once and sets its parameters
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
|
stops all sounds immediately
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
|
stops a specified sound immediately
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
||||||||||||||||||||||||
|
updates parameters of a specified sound
Implemented in DeviceAudioRt, and DeviceAudioSdl. |
|
|
sets master volume
|
|
||||||||||||
|
sets master volume
|
|
|
stores output stream frequency
|
|
|
stores left master volume
|
|
|
stores right master volume
|
|
|
map associating suffixes to loader functions
|
|
|
pointer to singleton
|
| © 2009-02-04 by Gerald Franz, www.viremo.de | impressum |