lobimyfree.blogg.se

Avrecorder recording skipping
Avrecorder recording skipping










avrecorder recording skipping

Finally, note that the AVAudioRecorder method deleteRecording as of this writing crashes your application. This is why I am removing the recorded file through the File Manager. When recording is done, I save the recorded audio as NSData in the currently edited object using KVC. The recording uses cd quality (44100 samples), stereo (2 channels) linear pcm. Beware: if you want to use a different format, especially an encoded one, make sure you fully understand how to set the AVAudioRecorder settings (read carefully the audio types documentation), otherwise you will never be able to initialize it correctly. One more thing. In the code, I am not showing how to handle metering data, but you can figure it out easily. Here is my working code. Recording is triggered by the user pressing a button on the navBar.

avrecorder recording skipping

There are not any examples of how to best do this in the iPhone Dev Center and only reference to the classes. I am a newbie at iPhone development, so I am looking for a simple sample to get me started.Īctually, there are no examples at all. Now that iPhone 3.0 SDK is public, I think I can ask this question for those of you that have already been playing with the 3.0 SDK. I want to record audio in my application, but I want to use AVAudioRecorder and not the older way of recording like the example SpeakHere shows. 如何使用 AVAudioRecorder 在 iPhone 上錄製音頻? (How do I record audio on iPhone with AVAudioRecorder?)












Avrecorder recording skipping