1
Audio / Re: How to properly remove sfml::sound/music (AL lib: (EE) alc_cleanup: 1 device...)
« on: December 22, 2019, 04:43:06 am »
So I had the soundbuffers stored in a std::map, and it turns out I did not need to call GameData->assets.music.~SoundSource(); at all.
But I was rolling through code thinking about
And I found the error, and a pretty big one at that.
I had a dynamic object that had sf::sound member that was not being properly removed. Which was why, like you said, a sound object was outliving the soundbuffer it was refering too. Thanks a lot! Really big help!
But I was rolling through code thinking about
- Every sf::SoundBuffer must outlive all the sf::Sound instances that refer to it.
And I found the error, and a pretty big one at that.
I had a dynamic object that had sf::sound member that was not being properly removed. Which was why, like you said, a sound object was outliving the soundbuffer it was refering too. Thanks a lot! Really big help!