Modified the timing of starting to play a new song. Now we switch our thread to realtime scheduling for 2 seconds before doing neccesary waiting, and then playing the audio.