From: Matthias Braun Date: Fri, 26 May 2006 17:40:37 +0000 (+0000) Subject: fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=10dc7713d9a1321677ad734127aa60d11f022be4;p=supertux.git fix SVN-Revision: 3596 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index 0c77b997e..12e620098 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -173,8 +173,8 @@ SoundManager::play(const std::string& filename, const Vector& pos) return; try { - OpenALSoundSource* source - = static_cast (create_sound_source(filename)); + std::auto_ptr source + (static_cast (create_sound_source(filename))); if(pos == Vector(-1, -1)) { source->set_rollof_factor(0); @@ -182,7 +182,7 @@ SoundManager::play(const std::string& filename, const Vector& pos) source->set_position(pos); } source->play(); - sources.push_back(source); + sources.push_back(source.release()); } catch(std::exception& e) { log_warning << "Couldn't play sound " << filename << ": " << e.what() << std::endl; } diff --git a/src/badguy/willowisp.hpp b/src/badguy/willowisp.hpp index 00cc4c9a9..ced723088 100644 --- a/src/badguy/willowisp.hpp +++ b/src/badguy/willowisp.hpp @@ -22,7 +22,6 @@ #define __WILLOWISP_H__ #include "badguy.hpp" -#include "audio/managed_sound_source.hpp" class WillOWisp : public BadGuy {