MonoMac.AVFoundation.AVAudioRecorder Class
Audio recording class.

See Also: AVAudioRecorder Members

Syntax

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

Remarks

To create instances of this class use the factory method AVRecorder.ToUrl(MonoMac.Foundation.NSUrl, MonoMac.AVFoundation.AVAudioRecorderSettings, MonoMac.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: MonoMac.AVFoundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0