mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:45:40 +00:00
Enabled music streaming
This commit is contained in:
parent
88f10eb222
commit
6cdb0f1152
1 changed files with 2 additions and 1 deletions
|
@ -176,9 +176,10 @@ namespace MWSound
|
||||||
// Play the sound and tell it to stream, if possible. TODO:
|
// Play the sound and tell it to stream, if possible. TODO:
|
||||||
// Store the reference, the jukebox will need to check status,
|
// Store the reference, the jukebox will need to check status,
|
||||||
// control volume etc.
|
// control volume etc.
|
||||||
SoundPtr music = mData->mgr->play(filename);
|
SoundPtr music = mData->mgr->load(filename);
|
||||||
music->setStreaming(true);
|
music->setStreaming(true);
|
||||||
music->setVolume(0.4);
|
music->setVolume(0.4);
|
||||||
|
music->play();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoundManager::playSound (const std::string& soundId, float volume, float pitch)
|
void SoundManager::playSound (const std::string& soundId, float volume, float pitch)
|
||||||
|
|
Loading…
Reference in a new issue