¡@

Home 

2014/10/15 ¤U¤È 10:04:51

iphone Programming Glossary: caf

Override ringer volume in iPhone apps

http://stackoverflow.com/questions/1028120/override-ringer-volume-in-iphone-apps

AVAudioPlayer alloc initWithContentsOfURL NSURL URLWithString NSBundle mainBundle pathForResource @ something ofType @ caf error nil volumeOverridePlayer prepareToPlay ... Just leave the player prepared to play your file and enjoy your own volume..

iPhone - AVAudioRecorder - how can I record to an mp3?

http://stackoverflow.com/questions/1052092/iphone-avaudiorecorder-how-can-i-record-to-an-mp3

the AVAudioRecorder class available with the 3.0 SDK to record audio in my app. I am successfully able to record to a caf aiff file. But I would like to record to an mp3. I tried changing some values in the settings dictionary but all I get is.. but all I get is a blank file. Is it possible to record to an mp3 using AVAudioRecorder If not how can I transfer the caf files from my app to a computer Thanks. iphone audio avaudiorecorder share improve this question From all I can find..

Playing sounds in iPhone SDK?

http://stackoverflow.com/questions/2483470/playing-sounds-in-iphone-sdk

void PlayClick NSURL musicFile NSURL fileURLWithPath NSBundle mainBundle pathForResource @ click ofType @ caf AVAudioPlayer click AVAudioPlayer alloc initWithContentsOfURL musicFile error nil click play click release This assumes.. alloc initWithContentsOfURL musicFile error nil click play click release This assumes a file called click.caf available in the main bundle. As I play this sound a lot I actually keep it around to play it later instead of releasing..

Converting audio to CAF format for playback on iPhone using OpenAL

http://stackoverflow.com/questions/254080/converting-audio-to-caf-format-for-playback-on-iphone-using-openal

the SoundEngine sample code from Apple in the CrashLanding sample to play back multiple audio files. Using the sample caf files included with CrashLanding everything works fine but when I try and use my own samplesconverted to CAF using afconvert..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

outputSettings audioSettings retain NSURL fileURL NSBundle mainBundle URLForResource @ Big_Voice_1 withExtension @ caf NSLog @ @ fileURL AVAsset asset AVURLAsset URLAssetWithURL fileURL options nil retain AVAssetReader audioReader AVAssetReader.. AVMutableComposition mixComposition AVMutableComposition composition NSString audio_inputFileName @ deformed.caf NSString audio_inputFilePath Utilities documentsPath audio_inputFileName NSURL audio_inputFileUrl NSURL fileURLWithPath..

how to upload an audio file using HTTP POST from iPhone?

http://stackoverflow.com/questions/6199446/how-to-upload-an-audio-file-using-http-post-from-iphone

to upload an audio file using HTTP POST from iPhone I am trying to upload an audio file in caf format from the iPhone to a web server. The used codes are given below. The problem is I am not getting any file to upload.. NSString stringWithString @ 14737809831466499882746641449 NSString contentType NSString stringWithFormat @ audio x caf boundary @ boundary request setValue contentType forHTTPHeaderField @ Content Type NSMutableData body NSMutableData data.. dataUsingEncoding NSUTF8StringEncoding body appendData NSString stringWithString @ Content Type audio x caf r n r n dataUsingEncoding NSUTF8StringEncoding body appendData fileData body appendData NSString stringWithFormat @ r n..

How to copy songs from iPod Library to app and play with AVAudioPlayer?

http://stackoverflow.com/questions/7472141/how-to-copy-songs-from-ipod-library-to-app-and-play-with-avaudioplayer

So Is it possible to copy iPod Library songs after copying it to app I have one code which converts the song to caf format and then I am able to play using AVAudioPlayer . But Conversion takes too long time. So is there any other way I..

Sound stop playing [duplicate]

http://stackoverflow.com/questions/8094557/sound-stop-playing

another one is pressed void playOnce NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf AVAudioPlayer theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate.. 1.0 theAudio play void playLooped NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf AVAudioPlayer theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate.. theAudio release @end void playOnce NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf if theAudio theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate..

iPhone - Sound overlapping with multiple button presses

http://stackoverflow.com/questions/8101870/iphone-sound-overlapping-with-multiple-button-presses

another one is pressed void playOnce NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf AVAudioPlayer theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate.. 1.0 theAudio play void playLooped NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf AVAudioPlayer theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate.. theAudio release @end void playOnce NSString aSound NSString path NSBundle mainBundle pathForResource aSound ofType @ caf if theAudio theAudio AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath path error NULL theAudio setDelegate..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

NSBundle mainBundle erasingSound SoundEffect alloc initWithContentsOfFile mainBundle pathForResource @ Erase ofType @ caf selectSound SoundEffect alloc initWithContentsOfFile mainBundle pathForResource @ Select ofType @ caf window setFrame CGRectMake.. @ Erase ofType @ caf selectSound SoundEffect alloc initWithContentsOfFile mainBundle pathForResource @ Select ofType @ caf window setFrame CGRectMake 0 0 768 1024 drawingView.frame CGRectMake 0 0 768 1024 Erase the view when recieving a notification..

SimpleAudioEngine, playing .caf files [duplicate]

http://stackoverflow.com/questions/10286686/simpleaudioengine-playing-caf-files

problem on your command line. I usually use afconvert f caff d LEI16@22050 sound.wav to convert my wave files to CAF. Since you cannot play the CAF files by clicking it I suggest to have a try to convert it to other formats like wave or.. I usually use afconvert f caff d LEI16@22050 sound.wav to convert my wave files to CAF. Since you cannot play the CAF files by clicking it I suggest to have a try to convert it to other formats like wave or AIFF afconvert f AIFC d ima4 sound.wav.. 3 file to wave first by some third party tools such as Audacity and try again with afconvert . P.S. I usually use CAF for sound effects and use AIFF for background music. Please refer to Sound on iOS Best Practices. share improve this answer..

Converting audio to CAF format for playback on iPhone using OpenAL

http://stackoverflow.com/questions/254080/converting-audio-to-caf-format-for-playback-on-iphone-using-openal

audio to CAF format for playback on iPhone using OpenAL I am using the SoundEngine sample code from Apple in the CrashLanding sample.. sample caf files included with CrashLanding everything works fine but when I try and use my own samplesconverted to CAF using afconvert all I get is a stony silence Does anyone have settings for afconvert that will produce a CAF file capable.. to CAF using afconvert all I get is a stony silence Does anyone have settings for afconvert that will produce a CAF file capable of being played back through OpenAL iphone core audio openal afconvert share improve this question afconvert..

what is the best way to play sound quickly upon fast button presses xcode?

http://stackoverflow.com/questions/3128283/what-is-the-best-way-to-play-sound-quickly-upon-fast-button-presses-xcode

Apple's recommendations in regards to decoding certain files i.e. for multiple sounds at once Apple recommends the CAF format since it is hardware decoded versus software decoded http developer.apple.com iphone library documentation AVFoundation.. Put this in a file called batchit.sh in it's own directory. Then place whatever .WAV files you want to encode as a .CAF file in that directory. Open up the Terminal on your Mac cd to that directory and type sh batchit.sh and let it do it's..

iOS: Create an MP3 on device

http://stackoverflow.com/questions/4145623/ios-create-an-mp3-on-device

etc. I have also found here that there is an AudioConverterFillComplexBuffer function that might theoretically convert CAF file to MP3 but I can't find any sample code or explanation on how to use this function. Any help will be greatly appreciated...

Getting file type (Audio or Video) in iOS

http://stackoverflow.com/questions/4461898/getting-file-type-audio-or-video-in-ios

AVAudioPlayer and MPMoviePlayerController support without any extra work from you Audio Files MP3 M4P M4A AAC WAV and CAF Video Files M4V MPV MP4 MOV 3GP Note I do not know whether the above is a complete list of formats but it should get you..

Recording sound as WAV on iphone

http://stackoverflow.com/questions/570430/recording-sound-as-wav-on-iphone

must happen on the phone EDIT I'm wondering if anything can be done with using kAudioFileWAVEType instead of kAudioFileCAFType in AudioFileCreateWithURL iphone audio core audio share improve this question Yup the key is kAudioFileWAVEType.. audioFileURL kAudioFileWAVEType audioFormat kAudioFileFlags_EraseFile audioFileID Changing to WAVE from CAF in the SpeakHere example causes the recording to be as wav. I also edit the same thing in the playback class and changed..

iPhone merger UIImage and CAF Audio to AV file

http://stackoverflow.com/questions/5853913/iphone-merger-uiimage-and-caf-audio-to-av-file

merger UIImage and CAF Audio to AV file I want to merger an image file and an audio file. I have UIImage object in which I have my image. I have.. AV file I want to merger an image file and an audio file. I have UIImage object in which I have my image. I have also CAF audio recording of 4 5 seconds. Now I would like to create a movie file with image repeating for the length of audio. Using..

How to reverse an audio file?

http://stackoverflow.com/questions/6593118/how-to-reverse-an-audio-file

to reverse an audio file I'd like to reverse an existing audio file e.g. WAV CAF ... on iOS. Any suggestions on how to achieve this Open source libraries iphone ios audio share improve this question.. 2 myPCMFormat.mBytesPerFrame 2 AudioFileCreateWithURL __bridge CFURLRef self.flippedAudioUrl kAudioFileCAFType myPCMFormat kAudioFileFlags_EraseFile outputAudioFile set up input file AudioFileID inputAudioFile OSStatus theErr..