1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 13:27:14 +00:00

Fix two sound looping bugs.

The first one caused the music to stop randomly on scene changes,
reproducible by changing maps with different music while holding 'G'
button to speed up time.
For some reason this caused the music to stop playing during the crossfade.
Wasn't able to find the root cause, so I added a little hack to kick the
music back on track if it stops unexpectedly.

The second one was a simple string case issue; mostly noticable because of
map background sounds not playing in loop mode.
(this is possibly a regression from an earlier patch, not sure)
This commit is contained in:
fgenesis 2012-10-07 00:05:17 +02:00
commit 66d3b90473
2 changed files with 26 additions and 39 deletions

View file

@ -213,8 +213,6 @@ public:
void update(float dt);
std::string currentMusic;
bool enabled;
bool checkError();