sswift: just use AppSuspend and AppResume Events like Flameduck says. My framework does this. Basically if you are playing in windowed mode and click the desktop or alt tab to another app it pasues and stops music, then a click back in the window unpasues, simple.