Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/sound/src/sound_control.h @ 2849

Last change on this file since 2849 was 2838, checked in by simon, 20 years ago

branches/sound: instance can now be freed via static deleteInstance()

  • Property svn:executable set to *
File size: 625 bytes
Line 
1#ifndef SOUNDCONTROL_CLASS_H
2#define SOUNDCONTROL_CLASS_H
3
4#include "data_tank.h"
5
6class SoundControl {
7
8 public:
9  static SoundControl* getInstance();
10  static void deleteInstance();
11  void setNumberOfChannels(int number_of channels);
12  int playMod(char* filename);
13  int playWav(char* filename);
14  int playOgg(char* filename);
15  void volumeUp();
16  void volumeDown();
17  void trackRewind();
18  void forwardMusic();
19  void rewindMusic();
20  void pauseMusic();
21  void resumeMusic();
22  void trackSelect();
23
24protected:
25  void initialise();
26  SoundControl();
27  ~SoundControl();
28
29private:
30  static SoundControl* instance;
31
32}
33
34#endif
Note: See TracBrowser for help on using the repository browser.