Quote:
Originally Posted by bhearn
This code works for me:
Code:
SystemSoundID train;
AudioServicesCreateSystemSoundID(CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("train2"), CFSTR("wav"), NULL), &train);
AudioServicesPlaySystemSound(train);
It did take a fair amount of fiddling and googling to get it to work the first time!
|
I'm running this and I can't get any sound output from my simulator OR iphone. There are no errors or warning though. Maybe my wav file is bad? How can I check that?