Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *path = [[NSBundle mainBundle] pathForResource:@"dream" ofType:@"m4a"];
- AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
- theAudio.delegate = self;
- [theAudio play];
- /usr/bin/afconvert -f caff -d ima4 sound.mp3 sound.caf
- -(void)Play:(NSString*)sSoundFile {
- // play sound file here
- }
Add Comment
Please, Sign In to add comment