MonoTouch.AVFoundation.AVAudioRecorder Class
Audio recording class.

See Also: AVAudioRecorder Members

Syntax

[MonoTouch.Foundation.Register("AVAudioRecorder", true)]
public class AVAudioRecorder : MonoTouch.Foundation.NSObject

Remarks

To create instances of this class use the factory method AVRecorder.ToUrl(MonoTouch.Foundation.NSUrl, MonoTouch.AVFoundation.AVAudioRecorderSettings, MonoTouch.Foundation.NSError)

C# Example

var settings = new AVAudioRecorderSettings () {
	AudioFormat = AudioFormatType.LinearPCM,
	AudioQuality = AVAudioQuality.High,
	SampleRate = 44100f,
	NumberChannels = 1
};
var recorder = AVAudioRecorder.ToUrl (url, settings, out error);
if (recorder == null){
    Console.WriteLine (error);
    return;
}
recorder.PrepareToRecord ();            
recorder.Record ();

Related content

Requirements

Namespace: MonoTouch.AVFoundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0