#include <CAudio.h>
Public Member Functions | |
| Audio () | |
| void | setSoundVolume (int soundVolume) |
| void | setMusicVolume (int musicVolume) |
| void | registerEngine (Engine *engine) |
| bool | loadSound (int i, char *filename) |
| bool | loadMusic (char *filename) |
| void | playSound (int snd, int channel) |
| void | playMusic () |
| void | playMusicOnce () |
| int | playMenuSound (int sound) |
| bool | loadGameOverMusic () |
| bool | reloadLevelMusic () |
| void | playAmbiance () |
| void | stopAmbiance () |
| void | pause () |
| void | resume () |
| void | stopMusic () |
| void | fadeMusic () |
| void | free () |
| void | destroy () |
Public Attributes | |
| int | output |
| bool | useSound |
| bool | useMusic |
Private Attributes | |
| char | levelMusicName [128] |
| Engine * | engine |
| Mix_Chunk * | sound [MAX_SOUNDS] |
| Mix_Chunk * | quickSound |
| int | musicVolume |
| int | soundVolume |
| Mix_Music * | music |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.7