Sound play button

What code would i use for a play button that would tell it not to play if the sound is already playing?

The problem i’m having is with music that auto plays when a page is loaded. if i click the play button while it is already playing, it starts playing another loop of the same sound object over the top. i’m sure this is a simple one line of code. can you help??

thanks