added a toggle function to toggle playback.

a simple toggle function to pause play music.