mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 08:39:42 +00:00
Fully reset the music before starting the next track
This commit is contained in:
parent
3a57746ee4
commit
e8e8d3fb1b
1 changed files with 1 additions and 2 deletions
|
@ -132,8 +132,7 @@ namespace MWSound
|
||||||
std::cout <<"Playing "<<filename<< std::endl;
|
std::cout <<"Playing "<<filename<< std::endl;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if(mMusic)
|
stopMusic();
|
||||||
mMusic->stop();
|
|
||||||
mMusic = mOutput->streamSound(filename, 0.4f, 1.0f, Play_NoEnv);
|
mMusic = mOutput->streamSound(filename, 0.4f, 1.0f, Play_NoEnv);
|
||||||
mMusic->mBaseVolume = 0.4f;
|
mMusic->mBaseVolume = 0.4f;
|
||||||
mMusic->mFlags = Play_NoEnv;
|
mMusic->mFlags = Play_NoEnv;
|
||||||
|
|
Loading…
Reference in a new issue