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:
parent
ac6ca117aa
commit
66d3b90473
2 changed files with 26 additions and 39 deletions
|
@ -213,8 +213,6 @@ public:
|
|||
|
||||
void update(float dt);
|
||||
|
||||
std::string currentMusic;
|
||||
|
||||
bool enabled;
|
||||
|
||||
bool checkError();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue