The CurrentlyPlayingSong member returns the song that is currently playing. This value is set as follows:
When PlaySongarrow-up-right is called it is set to the song passed to the method
When StopSongarrow-up-right is called it is set to null
When the CurrentlyPlayingSong finishes playing it is set to null
If a song is played through the MediaPlayer the AudioManager checks this every frame and automatically sets the CurrentlyPlayingSong
Last updated 1 year ago
Was this helpful?