Currently, in the main branch, in a situation when Mix_FadeOutChannel() is called before the end of the playback, but when there is less than ms milliseconds left before the end of the track, there will be two calls of Mix_ChannelFinished() callback instead of one - the first is when playback is finished, and the second is when the fade timer expires. This may lead to various issues (e.g. to the double-free issue when Mix_ChannelFinished() callback is used to release the Mix_Chunk).
Currently, in the
main
branch, in a situation whenMix_FadeOutChannel()
is called before the end of the playback, but when there is less thanms
milliseconds left before the end of the track, there will be two calls ofMix_ChannelFinished()
callback instead of one - the first is when playback is finished, and the second is when the fade timer expires. This may lead to various issues (e.g. to the double-free issue whenMix_ChannelFinished()
callback is used to release theMix_Chunk
).