1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 18:09:50 +00:00

Fully reset the music before starting the next track

This commit is contained in:
Chris Robinson 2012-03-31 10:59:29 -07:00
parent 3a57746ee4
commit e8e8d3fb1b

View file

@ -132,8 +132,7 @@ namespace MWSound
std::cout <<"Playing "<<filename<< std::endl;
try
{
if(mMusic)
mMusic->stop();
stopMusic();
mMusic = mOutput->streamSound(filename, 0.4f, 1.0f, Play_NoEnv);
mMusic->mBaseVolume = 0.4f;
mMusic->mFlags = Play_NoEnv;