source:
orxonox.OLD/orxonox/branches/sound/src/sound_control.h
@
2937
Last change on this file since 2937 was 2854, checked in by simon, 20 years ago | |
---|---|
|
|
File size: 696 bytes |
Rev | Line | |
---|---|---|
[2793] | 1 | #ifndef SOUNDCONTROL_CLASS_H |
2 | #define SOUNDCONTROL_CLASS_H | |
[2777] | 3 | |
[2854] | 4 | #include "SDL/SDL.h" |
5 | #include "SDL/SDL_mixer.h" | |
6 | #include <stdio.h> | |
[2777] | 7 | |
[2793] | 8 | class SoundControl { |
[2777] | 9 | |
10 | public: | |
[2838] | 11 | static SoundControl* getInstance(); |
12 | static void deleteInstance(); | |
[2854] | 13 | void setNumberOfChannels(int number_of_channels); |
[2793] | 14 | int playMod(char* filename); |
15 | int playWav(char* filename); | |
16 | int playOgg(char* filename); | |
17 | void volumeUp(); | |
18 | void volumeDown(); | |
19 | void trackRewind(); | |
20 | void forwardMusic(); | |
21 | void rewindMusic(); | |
22 | void pauseMusic(); | |
23 | void resumeMusic(); | |
24 | void trackSelect(); | |
[2854] | 25 | static void musicDone(); |
[2777] | 26 | |
[2838] | 27 | protected: |
[2815] | 28 | void initialise(); |
29 | SoundControl(); | |
[2838] | 30 | ~SoundControl(); |
31 | ||
32 | private: | |
33 | static SoundControl* instance; | |
[2854] | 34 | }; |
[2838] | 35 | |
[2777] | 36 | #endif |
Note: See TracBrowser
for help on using the repository browser.