1
Audio / Re: Music not playing even though its loaded.
« on: April 24, 2024, 07:55:36 am »
You shouldn't use any SFML resources globally, in general avoid globals as much as possible.
Initialization and destruction order at a global scope aren't guaranteed, so you can run into issues where some expected internal SFML global isn't initialize or already destructed, leading to crashes. As for globals in general, they make it very hard to impossible to track the state and code flow at any given moment.
Why this would have an impact on the music playing or not playing, I don't know, since those are separate modules without any overlaps.
Initialization and destruction order at a global scope aren't guaranteed, so you can run into issues where some expected internal SFML global isn't initialize or already destructed, leading to crashes. As for globals in general, they make it very hard to impossible to track the state and code flow at any given moment.
Why this would have an impact on the music playing or not playing, I don't know, since those are separate modules without any overlaps.