From e6fe1c026117afba201d0abf607f50d3e94e37c4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Mar 2012 19:08:11 -0700 Subject: [PATCH] Remove a mostly unneeded wrapper function --- apps/openmw/mwsound/soundmanager.cpp | 47 ++++++++++++---------------- apps/openmw/mwsound/soundmanager.hpp | 4 --- 2 files changed, 20 insertions(+), 31 deletions(-) diff --git a/apps/openmw/mwsound/soundmanager.cpp b/apps/openmw/mwsound/soundmanager.cpp index 6c415957f..36e058c6f 100644 --- a/apps/openmw/mwsound/soundmanager.cpp +++ b/apps/openmw/mwsound/soundmanager.cpp @@ -110,27 +110,6 @@ namespace MWSound return std::string("Sound/")+snd->sound; } - // Add a sound to the list and play it - void SoundManager::play3d(const std::string &file, - MWWorld::Ptr ptr, - const std::string &id, - float volume, float pitch, - float min, float max, - bool loop, bool untracked) - { - try - { - const ESM::Position &pos = ptr.getCellRef().pos; - SoundPtr sound(mOutput->playSound3D(file, pos.pos, volume, pitch, min, max, loop)); - - if(untracked) mLooseSounds[id] = sound; - else mActiveSounds[ptr][id] = sound; - } - catch(std::exception &e) - { - std::cout <<"Sound Error: "<playSound3D(filePath, pos.pos, 1.0f, 1.0f, 100.0f, 20000.0f, false)); + mActiveSounds[ptr]["_say_sound"] = sound; + } + catch(std::exception &e) + { + std::cout <<"Sound Error: "<playSound3D(file, pos.pos, volume, pitch, min, max, loop)); + if(untracked) mLooseSounds[soundId] = sound; + else mActiveSounds[ptr][soundId] = sound; } catch(std::exception &e) { - std::cout <<"Sound play error: "<