IceLuna / Eagle

Game Engine
https://eagledocs.readthedocs.io/en/latest/
Apache License 2.0
9 stars 1 forks source link

Improve singleshot Sound spawning #93

Closed IceLuna closed 2 years ago

IceLuna commented 2 years ago

Well, now AudioEngine is responsible for spawning singles shot sounds. List, insted of vector, is used to store Sounds. When another scene is loaded, singleshot sounds are distroyed. Each 60s (at the time) audio engine goes through the list and checks which sounds are playing. If sound is not playing -> releases sound resources.