Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2931 was 2854, checked in by simon, 20 years ago

/branches/sound: finally a running version. To test, you can switch the parameters in the test class sound_test. A .ogg file named music.ogg from the directory . is played. The test class is really ugly, I know.

  • Property svn:executable set to *
File size: 696 bytes
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
10 public:
11  static SoundControl* getInstance();
12  static void deleteInstance();
13  void setNumberOfChannels(int number_of_channels);
14  int playMod(char* filename);
15  int playWav(char* filename);
16  int playOgg(char* filename);
17  void volumeUp();
18  void volumeDown();
19  void trackRewind();
20  void forwardMusic();
21  void rewindMusic();
22  void pauseMusic();
23  void resumeMusic();
24  void trackSelect();
25  static void musicDone();
26
27protected:
28  void initialise();
29  SoundControl();
30  ~SoundControl();
31
32private:
33  static SoundControl* instance;
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.