Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3179 in orxonox.OLD for orxonox/branches/sound/src/sound_control.h


Ignore:
Timestamp:
Dec 15, 2004, 3:40:54 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/sound: added files to source again, made it compile for widnows again.
Simon, if you arrive at a point where it is doing something usefull, we inject it into the trunk.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/sound/src/sound_control.h

    r2972 r3179  
    77
    88class SoundControl {
    9 
    109 public:
    1110  static SoundControl* getInstance();
    1211  static void deleteInstance();
     12 
    1313  void setNumberOfChannels(int number_of_channels);
    14   int playMod(char* filename);
    15   int playWav(char* filename);
    16   int playOgg(char* filename);
     14  static void playMod(char* filename);
     15  static void playWav(char* filename);
     16  static void playOgg(char* filename);
    1717  void volumeUp();
    1818  void volumeDown();
     
    2222  void pauseMusic();
    2323  void resumeMusic();
    24   void trackSelect();
     24  void fadeInMusic(int time);
     25  void fadeOutMusic(int time);
    2526  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;
    2640
    27 protected:
    28   void initialise();
     41 protected:
    2942  SoundControl();
    3043  ~SoundControl();
     44  void initialise();
    3145
    32 private:
     46 private:
    3347  static SoundControl* instance;
    3448};
Note: See TracChangeset for help on using the changeset viewer.