#include <SoundEffectManager.h>
Public Member Functions | |
| int | playSample (unsigned int sampleNum) |
| Plays a sample from storage. | |
| int | playSample (unsigned int sampleNum, bool override) |
| Plays a sample with the option to override any other sample active. | |
| int | playSample (unsigned int sampleNum, bool override, unsigned int overrideChannel) |
| Plays a sample and forces it to override any other sample playing in the overrideChannel. | |
| int | addSample (char *filename) |
| Adds a sample from file to the internal storage. | |
| void | setVolume (int volume) |
| Sets the volume using SDL_Mixer. Max is 128. | |
| SoundEffectManager (char *dir) | |
| Instantiate the sound effect manager from disk. | |
| virtual | ~SoundEffectManager () |
| Destruct the sound effect manager, clearing all samples. | |
1.4.7