Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3114 in orxonox.OLD for orxonox/branches/sound/sound/sound_control.h


Ignore:
Timestamp:
Dec 6, 2004, 12:39:37 PM (19 years ago)
Author:
simon
Message:

/branches/sound: HUD reconfigured. Didn't commit earlier because something is amiss and it doesn't compile. Will make the thing materials functions to make bmp and tga.

File:
1 edited

Legend:

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

    r3020 r3114  
    1010  static SoundControl* getInstance();
    1111  static void deleteInstance();
     12 
    1213  void setNumberOfChannels(int number_of_channels);
    13   void playMod(char* filename);
    14   void playWav(char* filename);
    15   void playOgg(char* filename);
     14  static void playMod(char* filename);
     15  static void playWav(char* filename);
     16  static void playOgg(char* filename);
    1617  void volumeUp();
    1718  void volumeDown();
     
    2122  void pauseMusic();
    2223  void resumeMusic();
     24  void fadeInMusic(int time);
     25  void fadeOutMusic(int time);
    2326  static void musicDone();
     27 
    2428  void handleKey(SDL_KeyboardEvent key);
    25   int main (void);
    26   static SoundControl* instance;
     29  int main(int argc, char* argv[]);
     30 
     31  static SoundControl* sound;
    2732  int volume;
    2833  int track_number;
     
    3338  int sfx_channel2;
    3439  int finished;
    35 private:
    36   void initialise();
     40
     41 protected:
    3742  SoundControl();
    3843  ~SoundControl();
     44  void initialise();
     45
     46 private:
     47  static SoundControl* instance;
    3948};
    4049
Note: See TracChangeset for help on using the changeset viewer.