1
0
Fork 1
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:
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; 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;