From 6cdb0f115244db4105beefd2aa2c9c1b90fc2858 Mon Sep 17 00:00:00 2001 From: Nicolay Korslund Date: Tue, 17 Aug 2010 13:30:53 +0200 Subject: [PATCH] Enabled music streaming --- apps/openmw/mwsound/soundmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwsound/soundmanager.cpp b/apps/openmw/mwsound/soundmanager.cpp index 98c62ed465..f8f5eeb006 100644 --- a/apps/openmw/mwsound/soundmanager.cpp +++ b/apps/openmw/mwsound/soundmanager.cpp @@ -176,9 +176,10 @@ namespace MWSound // Play the sound and tell it to stream, if possible. TODO: // Store the reference, the jukebox will need to check status, // control volume etc. - SoundPtr music = mData->mgr->play(filename); + SoundPtr music = mData->mgr->load(filename); music->setStreaming(true); music->setVolume(0.4); + music->play(); } void SoundManager::playSound (const std::string& soundId, float volume, float pitch)