1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Enabled music streaming

This commit is contained in:
Nicolay Korslund 2010-08-17 13:30:53 +02:00
parent 88f10eb222
commit 6cdb0f1152

View File

@ -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)