I'm currently making a little game, and I am having an issue with sound.
I've tried converting the file "pew.mp3" to pew.aif and pew.caf without much luck.
I have dragged it into the "support" section of the game (the same way i've add hundreds of images) and the sound effect does not work.
is what I am using. When I use the .aif or .caf the error i get is "'NSInvalidArgumentException', reason: 'Resource pew.aif cannot be found in the main bundle'"
I guess my question is do you have to use .caf or .aif? Or can you just use .mp3?
Any ideas?
I've tried converting the file "pew.mp3" to pew.aif and pew.caf without much luck.
I have dragged it into the "support" section of the game (the same way i've add hundreds of images) and the sound effect does not work.
Code:
[self runAction:[SKAction playSoundFileNamed:@"pew.aif" waitForCompletion:NO]];
is what I am using. When I use the .aif or .caf the error i get is "'NSInvalidArgumentException', reason: 'Resource pew.aif cannot be found in the main bundle'"
I guess my question is do you have to use .caf or .aif? Or can you just use .mp3?
Any ideas?