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
RevLine 
[2793]1#ifndef SOUNDCONTROL_CLASS_H
2#define SOUNDCONTROL_CLASS_H
[2777]3
4#include "data_tank.h"
5
[2793]6class SoundControl {
[2777]7
8 public:
[2838]9  static SoundControl* getInstance();
10  static void deleteInstance();
[2793]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();
[2777]23
[2838]24protected:
[2815]25  void initialise();
26  SoundControl();
[2838]27  ~SoundControl();
28
29private:
30  static SoundControl* instance;
31
[2793]32}
33
[2777]34#endif
Note: See TracBrowser for help on using the repository browser.