It appears if I call
[SAMSoundEffect playSoundEffectNamed:@"click.aif"];
then in soundEffectNamed:inBundle: fileName will equal @"click.aif" and fileExtension will equal @"aif" causing [bundleOrNil pathForResource:fileName ofType:fileExtension] to return nil.
The fix as far as I can tell is to change the fileName assignment to something like:NSString *fileName = [[name lastPathComponent] stringByDeletingPathExtension];
It appears if I call
[SAMSoundEffect playSoundEffectNamed:@"click.aif"];
then in
soundEffectNamed:inBundle:
fileName will equal@"click.aif"
and fileExtension will equal@"aif"
causing[bundleOrNil pathForResource:fileName ofType:fileExtension]
to returnnil
.The fix as far as I can tell is to change the fileName assignment to something like:
NSString *fileName = [[name lastPathComponent] stringByDeletingPathExtension];