Play and Stop button combined?

Is there any way i could have a button that plays a sound - but when the sound is stopped, the button shows a play symbol, then when that button is pressed, the sound plays and the button shows a stop symbol.

So basically a button to control stop and play, but i want the graphic to change?