Can anyone answer how to play mp3 files using AudioServicesCreateSystemSoundID()
? I tried but not working.
I have used the following code snippet for playing mp3
NSURL *soundURL = [[NSBundle mainBundle] URLForResource:fileName withExtension:extension];
soundFileURLRef = (CFURLRef) [soundURL retain];
// Create a system sound object representing the sound file.
AudioServicesCreateSystemSoundID ( soundFileURLRef,&soundFileObject);