iphone Programming Glossary: soundfile
AVAudioPlayer Help: Playing multiple sounds simultaneously, stopping them all at once, and working around Automatic Reference Counting http://stackoverflow.com/questions/11194838/avaudioplayer-help-playing-multiple-sounds-simultaneously-stopping-them-all-at currently yet unsuccessfully using the play the sounds IBAction playSound id sender AVAudioPlayer audioPlayer NSString soundFile NSBundle mainBundle pathForResource @ Hello ofType @ wav audioPlayer AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath.. pathForResource @ Hello ofType @ wav audioPlayer AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath soundFile error nil audioPlayer prepareToPlay audioPlayer play Whenever I run this code in the iPhone Simulator it does not play the.. stop method for AVAudioPlayer a in soundsArray a stop Modified playSound method IBAction playSound id sender NSString soundFile NSBundle mainBundle pathForResource @ Hello ofType @ wav AVAudioPlayer audioPlayer AVAudioPlayer alloc initWithContentsOfURL..
Can't send email with video/audio attachment on iphone! http://stackoverflow.com/questions/1921691/cant-send-email-with-video-audio-attachment-on-iphone stringByAppendingPathComponent @ tmp.mp3 NSURL fileURL NSURL alloc initFileURLWithPath mp3File NSData soundFile NSData alloc initWithContentsOfURL fileURL mailDialogController addAttachmentData soundFile mimeType @ audio mpeg fileName.. mp3File NSData soundFile NSData alloc initWithContentsOfURL fileURL mailDialogController addAttachmentData soundFile mimeType @ audio mpeg fileName @ tmp.mp3 works for me with mp3 files. when you say it fails with mp4 in what way if app..
|