¡@

Home 

2014/10/15 ¤U¤È 10:14:18

iphone Programming Glossary: soundfilepath

iPhone App : recording audio in mp3

http://stackoverflow.com/questions/10549023/iphone-app-recording-audio-in-mp3

the settings I use it comes out to ~150KB for 2 min of recording time NSString tempDir NSTemporaryDirectory NSString soundFilePath tempDir stringByAppendingPathComponent @ sound.m4a NSURL soundFileURL NSURL fileURLWithPath soundFilePath NSDictionary recordSettings.. NSString soundFilePath tempDir stringByAppendingPathComponent @ sound.m4a NSURL soundFileURL NSURL fileURLWithPath soundFilePath NSDictionary recordSettings NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kAudioFormatMPEG4AAC AVFormatIDKey..

Record the sound and play it back with changed pitch

http://stackoverflow.com/questions/10549317/record-the-sound-and-play-it-back-with-changed-pitch

NSSearchPathForDirectoriesInDomains NSDocumentDirectory NSUserDomainMask YES docsDir dirPaths objectAtIndex 0 NSString soundFilePath docsDir stringByAppendingPathComponent @ audio.caf recordedTmpFile1 NSURL fileURLWithPath soundFilePath recordSetting1 NSMutableDictionary.. 0 NSString soundFilePath docsDir stringByAppendingPathComponent @ audio.caf recordedTmpFile1 NSURL fileURLWithPath soundFilePath recordSetting1 NSMutableDictionary alloc init recordSetting1 NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt..

Using AVCaptureSession and AVAudioPlayer together

http://stackoverflow.com/questions/10903542/using-avcapturesession-and-avaudioplayer-together

am able to save to the .mov file. However if I call this function there's no output .mov file. void playAudio NSString soundFilePath NSBundle mainBundle pathForResource @ AudioFile ofType @ mp3 NSURL fileURL NSURL alloc initFileURLWithPath soundFilePath.. NSBundle mainBundle pathForResource @ AudioFile ofType @ mp3 NSURL fileURL NSURL alloc initFileURLWithPath soundFilePath AVAudioPlayer newPlayer AVAudioPlayer alloc initWithContentsOfURL fileURL error nil fileURL release self.audioPlayer newPlayer.. sharedInstance setActive YES error nil audioSessionSetup YES void playAudio self setupAudioSession NSString soundFilePath NSBundle mainBundle pathForResource @ AudioFile ofType @ mp3 NSURL fileURL NSURL alloc initFileURLWithPath soundFilePath..

Merging Audio with Video Objective-C

http://stackoverflow.com/questions/13909400/merging-audio-with-video-objective-c

NSDocumentDirectory NSUserDomainMask YES NSString docsDir dirPaths objectAtIndex 0 NSString soundFilePath docsDir stringByAppendingPathComponent @ 1.iaff Any tips Thanks. iphone ios objective c avassetwriter share improve this.. share improve this question First of all I should say the audio format you have given is incorrect NSString soundFilePath docsDir stringByAppendingPathComponent @ 1.iaff make that aiff NSString soundFilePath docsDir stringByAppendingPathComponent.. have given is incorrect NSString soundFilePath docsDir stringByAppendingPathComponent @ 1.iaff make that aiff NSString soundFilePath docsDir stringByAppendingPathComponent @ 1.aiff If you are not sure of the code you used This code works for me void mergeAudio..

Play MP3 Files with iPhone SDK

http://stackoverflow.com/questions/1973902/play-mp3-files-with-iphone-sdk

Also this example plays a song in the resource folder. #pragma mark #pragma mark play IBAction playaction NSString soundFilePath NSBundle mainBundle pathForResource @ songname ofType @ mp3 NSURL newURL NSURL alloc initFileURLWithPath soundFilePath self.soundFileURL.. soundFilePath NSBundle mainBundle pathForResource @ songname ofType @ mp3 NSURL newURL NSURL alloc initFileURLWithPath soundFilePath self.soundFileURL newURL newURL release AVAudioSession sharedInstance setDelegate self AVAudioSession sharedInstance setCategory..

iPhone/iPad - Loop Background Music?

http://stackoverflow.com/questions/3631353/iphone-ipad-loop-background-music

Thanks. iphone objective c audio loops music share improve this question You can use the AVAudioPlayer NSString soundFilePath NSBundle mainBundle pathForResource @ mySound ofType @ mp3 NSURL soundFileURL NSURL fileURLWithPath soundFilePath AVAudioPlayer.. soundFilePath NSBundle mainBundle pathForResource @ mySound ofType @ mp3 NSURL soundFileURL NSURL fileURLWithPath soundFilePath AVAudioPlayer player AVAudioPlayer alloc initWithContentsOfURL soundFileURL error nil player.numberOfLoops 1 infinite player..

AVAudioRecorder won't record IF movie was previously recorded & played

http://stackoverflow.com/questions/4148123/avaudiorecorder-wont-record-if-movie-was-previously-recorded-played

documentsPath NSSearchPathForDirectoriesInDomains NSDocumentDirectory NSUserDomainMask YES lastObject NSString soundFilePath documentsPath stringByAppendingPathComponent @ recording.caf if audioRecorder nil audioRecorder stop audioRecorder release.. documentsPath NSSearchPathForDirectoriesInDomains NSDocumentDirectory NSUserDomainMask YES lastObject NSString soundFilePath documentsPath stringByAppendingPathComponent @ recording.caf NSURL soundFileURL NSURL alloc initFileURLWithPath soundFilePath.. documentsPath stringByAppendingPathComponent @ recording.caf NSURL soundFileURL NSURL alloc initFileURLWithPath soundFilePath NSError err nil if audioPlayer audioPlayer release audioPlayer nil audioPlayer AVAudioPlayer alloc initWithContentsOfURL..

Play music in the background using AVAudioplayer

http://stackoverflow.com/questions/7619794/play-music-in-the-background-using-avaudioplayer

all stackoverflow links but none of them worked. Please help need to do it today. I had used following code NSString soundFilePath NSBundle mainBundle pathForResource @ Day At The Beach ofType @ mp3 NSURL fileURL NSURL alloc initFileURLWithPath soundFilePath.. NSBundle mainBundle pathForResource @ Day At The Beach ofType @ mp3 NSURL fileURL NSURL alloc initFileURLWithPath soundFilePath NSError error playerTemp AVAudioPlayer alloc initWithContentsOfURL fileURL error error playerTemp.numberOfLoops 0 AudioSessionSetActive..