Quote:
Originally Posted by GabeJacobs
@refreshe I am not good enough at Objective-C to to see what I am doing wrong. The metronome app is too confusing for me to understand how that can relate to mine.
|
Well I posted the relevant code for SoundEffect.h & SoundEffect.m files from the metronome app. Just replace your SoundEffect.h/m code with those.
They're basically the same, except they'll spit out some error messages if they exist.
Open the console when you build your app and see if any error messages show up.
Apart from errors in loading the sound, is the sound file itself compatible?
It should be under 5 seconds or it won't play using this playback method. Also maybe try converting it to apple's preferred .caf format instead of .wav
Apple have instructions in the dev center to go about doing this using a Terminal command.