I want to use SpriteKit to play sound, the question is that I use the function:
[SKAction playSoundFileNamed:@"sound.wav" waitForCompletion:NO];
But when I want to pause the game, the sound is still play.
How to stop the sound when skview.pause is set to YES, and to resume the sound when skview.pause is set to NO?