I'm trying to add sound to my little app. Initialization part works fine. But when I get to closing part, I get jammed sound. And from this state I can only kill app. This happens only some times and it’s really annoying .
Here's sound init part (al_install_audio and al_init_acodec_addon was called previously):
I’ve tried to use only al_reserve_samples(), and it’s working the same, except it freeze almost every time on closing .
I’ve tried to stop/destroy all samples and streams before closing app, that didn’t help either.
And I also tried to call al_uninstall_audio, and it freezes on it.
So is there some real absolutely correct way to close sound system?
Using MinGW builds from this site.