So would it be correct to set a variable 'playing' to false in that callback, of course protected by a SDL_mutex, and then check in the mainloop whether this variable is false and then play the next track?
Or are there other ways around this? Having another 'update()' function in all those menu etc. loops is something I'd like to avoid if there's a clean way to do so.
Thanks
