Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/soundEngine/src/sound_control.h @ 3509

Last change on this file since 3509 was 3509, checked in by bensch, 19 years ago

orxonox/branches/soundEngine: moved unrelevant stuff out of sound_control.

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#ifndef SOUNDCONTROL_CLASS_H
2#define SOUNDCONTROL_CLASS_H
3
4#include <SDL/SDL.h>
5#include <SDL/SDL_mixer.h>
6#include <stdio.h>
7
8class SoundControl {
9 public:
10  ~SoundControl();
11
12  static SoundControl* getInstance();
13 
14  void setNumberOfChannels(int number_of_channels);
15  static void playMod(char* filename);
16  static void playWav(char* filename);
17  static void playOgg(char* filename);
18  void volumeUp();
19  void volumeDown();
20  void trackRewind();
21  void forwardMusic();
22  void rewindMusic();
23  void pauseMusic();
24  void resumeMusic();
25  void fadeInMusic(int time);
26  void fadeOutMusic(int time);
27  static void musicDone();
28 
29  static void handleKey(SDL_KeyboardEvent key); 
30  int main(int argc, char* argv[]);
31 
32
33 private:
34  SoundControl();
35  void init(void);
36
37  static SoundControl* singletonRef;
38
39 public:
40  Mix_Music* music;
41  static SoundControl* sound;
42  int bits;
43  int volume;
44  int track_number;
45  int audio_rate, audio_channels, audio_buffers;
46  int done;
47  Uint16 audio_format;
48  int sfx_channel1;
49  int sfx_channel2;
50  int finished;
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.