/ Published in: Objective C
Expand |
Embed | Plain Text
// // AVAudioPlayer+SoundNamed.m // Simon Classic // // Created by Michael on 2/9/10. // Copyright 2010 Michael Sanders. // #import "AVAudioPlayer+SoundNamed.h" @implementation AVAudioPlayer (SoundNamed) { ofType:type]; if (soundPath == nil) return nil; if (soundURL == nil) return nil; return [[AVAudioPlayer alloc] initWithContentsOfURL:soundURL error:error]; } @end
You need to login to post a comment.
