fixed pause and sound problems when app becomes active.
Merge remote-tracking branch 'upstream/master'
Merge pull request #41 from samwong000/master

Fixed the pause error