
This class and its helpers are based on the G3D::AudioDevice class maintained by Morgan McGuire.
Public Member Functions | |
| AudioDevice () | |
| void | cleanup () |
| MusicStreamRef | createMusicStream (const std::string &filename) |
| SoundEffectRef | createSoundEffect (const std::string &filename) |
| int | getChannels () const |
returns the number of channels, 1 for mono, 2 for stereo | |
| G3D::uint16 | getFormat () const |
| returns the audio format | |
| int | getRate () const |
| returns the audio rate in samples per second | |
| bool | init () |
| void | pauseChannel (int channel) |
| pauses playback of the given channel | |
| void | pauseMusic () |
| pauses music playback | |
| void | resumeChannel (int channel) |
| resumes playback of the given channel | |
| void | resumeMusic () |
| resumes music playback | |
| void | setEffectVolume (int channel, float vol) |
| sets the volume of the given channel to the given ratio | |
| void | setMusicVolume (float vol) |
| sets the music volume | |
| void | stopChannel (int channel) |
| stops playback of the given channel | |
| void | stopMusic () |
| stops music playback | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returns the number of channels,
|
|
|
returns the audio format
|
|
|
returns the audio rate in samples per second
|
|
|
|
|
|
pauses playback of the given channel
|
|
|
pauses music playback
|
|
|
resumes playback of the given channel
|
|
|
resumes music playback
|
|
||||||||||||
|
sets the volume of the given channel to the given ratio
|
|
|
sets the music volume
|
|
|
stops playback of the given channel
|
|
|
stops music playback
|
1.4.3