- SoundManager doesn't need Effects for now - ambient sound volume
[supertux.git] / src / audio / sound_manager.h
index 09c0d00..e934315 100644 (file)
@@ -38,8 +38,9 @@ public:
   SoundManager();
   ~SoundManager();
 
-  /// Play sound.
-  void play_sound(const std::string& sound);
+  /// Play sound (maybe looping), return channel number (or -1 on error)
+  int play_sound(const std::string& sound,int loops=0);
+
   /// Play sound relative to two Vectors.
   void play_sound(const std::string& sound, const Vector& pos,
       const Vector& pos2);
@@ -47,6 +48,13 @@ public:
   void play_sound(const std::string& sound, const MovingObject* object,
       const Vector& pos);
   
+  /// register an effect to a channel - basti_
+  void register_effect(int channel,Mix_EffectFunc_t f,Mix_EffectDone_t d, 
+                      void * arg);
+
+  // effects - basti_ 
+  static void volume_adjust(int,void *,int,void *);
+
   /** Load music.
    * Is used to load the music for a MusicRef.
    */