HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.92k stars 427 forks source link

[ENHANCEMENT] Make SoundFrontEnd.volumeHandler a FlxSignal #3147

Closed ACrazyTown closed 1 month ago

ACrazyTown commented 1 month ago

Turning volumeHandler into a FlxSignal would make it possible to dispatch multiple volume change callbacks at the same time. For example it would be useful in a case where a video player library wants to get volume changes without stealing the functionality of getting a volume callback from the user

I could and would make a pull request for this but I'm not sure how to handle a breaking change like this. Would this be a new field? Would volumeHandler get deprecated and eventually replaced with the new field?