Changeset 3179 in orxonox.OLD for orxonox/branches/sound/src/sound_control.h
- Timestamp:
- Dec 15, 2004, 3:40:54 AM (21 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/src/sound_control.h
r2972 r3179 7 7 8 8 class SoundControl { 9 10 9 public: 11 10 static SoundControl* getInstance(); 12 11 static void deleteInstance(); 12 13 13 void setNumberOfChannels(int number_of_channels); 14 intplayMod(char* filename);15 intplayWav(char* filename);16 intplayOgg(char* filename);14 static void playMod(char* filename); 15 static void playWav(char* filename); 16 static void playOgg(char* filename); 17 17 void volumeUp(); 18 18 void volumeDown(); … … 22 22 void pauseMusic(); 23 23 void resumeMusic(); 24 void trackSelect(); 24 void fadeInMusic(int time); 25 void fadeOutMusic(int time); 25 26 static void musicDone(); 27 28 void handleKey(SDL_KeyboardEvent key); 29 int main(int argc, char* argv[]); 30 31 static SoundControl* sound; 32 int volume; 33 int track_number; 34 int audio_rate, audio_channels, audio_buffers; 35 int done; 36 Uint16 audio_format; 37 int sfx_channel1; 38 int sfx_channel2; 39 int finished; 26 40 27 protected: 28 void initialise(); 41 protected: 29 42 SoundControl(); 30 43 ~SoundControl(); 44 void initialise(); 31 45 32 private:46 private: 33 47 static SoundControl* instance; 34 48 };
Note: See TracChangeset
for help on using the changeset viewer.