|
The Game Engine
1
|
#include <Audio.h>
Collaboration diagram for Audio:Public Member Functions | |
| Audio () | |
| Initialize Audio Object. More... | |
| int | LoadAudio (std::string name, string location=NULL, bool play_on_start=true, int play_count=1) |
| void | LoadAudioConfig () |
| Load Audio from Config. More... | |
| void | initialize () |
| Open The Audio Device. More... | |
| void | play (int index) |
| Plays a Sound. More... | |
| void | stop (int index) |
| Stops a Sound. More... | |
| void | stopAll () |
| Stops all sounds. More... | |
| void | tone () |
| Play an Audio Test Tone. More... | |
Protected Attributes | |
| map< std::string, int > | mCached |
| Stores cached audio samples. More... | |
An Audio Interface.
This class is tasked with the following:
| Audio::Audio | ( | ) |
| void Audio::initialize | ( | ) |
Open The Audio Device.
| int Audio::LoadAudio | ( | std::string | name, |
| string | location = NULL, |
||
| bool | play_on_start = true, |
||
| int | play_count = 1 |
||
| ) |
| void Audio::LoadAudioConfig | ( | ) |
Load Audio from Config.
| void Audio::play | ( | int | index | ) |
| void Audio::tone | ( | ) |
|
protected |