With the manageAudio() function, if the button is currently playing then it pauses the audio.
Otherwise, (because the button isn't currently playing), it plays the audio.
That's how the manageAudio() function works. Surely you can tell how it works from the code that's in the function.