From 10dc7713d9a1321677ad734127aa60d11f022be4 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 26 May 2006 17:40:37 +0000 Subject: [PATCH] fix SVN-Revision: 3596 --- src/audio/sound_manager.cpp | 6 +++--- src/badguy/willowisp.hpp | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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 { -- 2.11.0