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:
parent
88f10eb222
commit
6cdb0f1152
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user