iphone audio plays on simulator but not on device

Posted by amarsh-anand on Stack Overflow See other posts from Stack Overflow or by amarsh-anand
Published on 2010-04-14T14:10:44Z Indexed on 2010/04/14 14:13 UTC
Read the original article Hit count: 350

Filed under:
|
|

The following code plays well on the simulator but the audio doesnt play on the actual device. I have tries aif, wav and mp3 ... all three with the same behaviour. Please sugest what could be wrong.

SystemSoundID aSound;
AudioServicesCreateSystemSoundID(CFBundleCopyResourceURL(CFBundleGetMainBundle(),CFSTR("drop"), CFSTR("wav"), NULL), &aSound);
AudioServicesPlaySystemSound(aSound);

© Stack Overflow or respective owner

Related posts about iphone

Related posts about audio