Add current level to another debug message
[supertux.git] / src / audio / stream_sound_source.hpp
index d3b3e94..d840066 100644 (file)
@@ -27,7 +27,7 @@ public:
   StreamSoundSource();
   virtual ~StreamSoundSource();
 
-  void set_sound_file(SoundFile* file);
+  void set_sound_file(std::unique_ptr<SoundFile> newfile);
 
   enum FadeState { NoFading, FadingOn, FadingOff };
 
@@ -38,9 +38,9 @@ public:
   }
   void update();
 
-  void set_looping(bool looping)
+  void set_looping(bool looping_)
   {
-    this->looping = looping;
+    this->looping = looping_;
   }
   bool get_looping() const
   {
@@ -54,7 +54,7 @@ private:
   = STREAMBUFFERSIZE / STREAMFRAGMENTS;
 
   bool fillBufferAndQueue(ALuint buffer);
-  SoundFile* file;
+  std::unique_ptr<SoundFile> file;
   ALuint buffers[STREAMFRAGMENTS];
 
   FadeState fade_state;