jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Looping sounds are stopped when multiple instances are playing #29

Closed jakubg1 closed 2 years ago

jakubg1 commented 3 years ago

When multiple looping sound events of the same file are active and one of it is stopped, all instances are stopped. The solution is to make the sound play function return a handler and use it to stop that particular instance.

jakubg1 commented 2 years ago

Fixed for BonusScarab in https://github.com/jakubg1/OpenSMCE/commit/fe7e82f5344fe3d648a6cfedc9de7c319391eaca. Still needs to be fixed in Scorpion.

jakubg1 commented 2 years ago

Fixed for Scorpion: https://github.com/jakubg1/OpenSMCE/commit/692ee86ab960188c85f2b1a2e8b01d905d0537ae