Changeset 3114 in orxonox.OLD for orxonox/branches/sound/sound/sound_control.h
- Timestamp:
- Dec 6, 2004, 12:39:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/sound/sound_control.h
r3020 r3114 10 10 static SoundControl* getInstance(); 11 11 static void deleteInstance(); 12 12 13 void setNumberOfChannels(int number_of_channels); 13 void playMod(char* filename);14 void playWav(char* filename);15 void playOgg(char* filename);14 static void playMod(char* filename); 15 static void playWav(char* filename); 16 static void playOgg(char* filename); 16 17 void volumeUp(); 17 18 void volumeDown(); … … 21 22 void pauseMusic(); 22 23 void resumeMusic(); 24 void fadeInMusic(int time); 25 void fadeOutMusic(int time); 23 26 static void musicDone(); 27 24 28 void handleKey(SDL_KeyboardEvent key); 25 int main (void); 26 static SoundControl* instance; 29 int main(int argc, char* argv[]); 30 31 static SoundControl* sound; 27 32 int volume; 28 33 int track_number; … … 33 38 int sfx_channel2; 34 39 int finished; 35 private: 36 void initialise();40 41 protected: 37 42 SoundControl(); 38 43 ~SoundControl(); 44 void initialise(); 45 46 private: 47 static SoundControl* instance; 39 48 }; 40 49
Note: See TracChangeset
for help on using the changeset viewer.