Audio Class Reference
[Audio]
Inheritance diagram for Audio:

Classes | |
| struct | SoundInstanceEntry |
| struct | SoundStreamEntry |
Public Member Functions | |
| Audio () | |
| virtual | ~Audio () |
| void | Update () |
| void | Register (Music *stream) |
| void | Unregister (Music *stream) |
| unsigned int | PlaySound (const Sound &sound, float priority=0, bool looping=false) |
| SoundInstance * | GetSoundInstance (unsigned int handle) |
| Platform_Sound_SoundStream * | AcquireSoundStream (SoundInstance *instance) |
| void | ReleaseSoundStream (SoundInstance *instance) |
| void * | GetStreamBuffer (int minSize) |
Detailed Description
- Todo:
- Add WAV format
Convert sound type (freq,chan,bps) in realtime (all sounds (not music) play as a single, specifiable format. default is 44khz 2ch 16bps)
Shared temp buffers for streaming music and sound data
Support built-in cross-fading of music
Clean up and finish off sound/soundinstance and priorities
Definition at line 35 of file Audio.h.
Constructor & Destructor Documentation
Member Function Documentation
| unsigned int Audio::PlaySound | ( | const Sound & | sound, | |
| float | priority = 0, |
|||
| bool | looping = false | |||
| ) |
| SoundInstance * Audio::GetSoundInstance | ( | unsigned int | handle | ) |
| Platform_Sound_SoundStream * Audio::AcquireSoundStream | ( | SoundInstance * | instance | ) |
| void Audio::ReleaseSoundStream | ( | SoundInstance * | instance | ) |
Reproduction/republishing of any material on this site without permission is strictly prohibited.
