MonoMac.AVFoundation.AVAudioRecorderSettings Class
Used to describe the recording options for an AVAudioRecoder.

See Also: AVAudioRecorderSettings Members

Syntax

public class AVAudioRecorderSettings

Remarks

Instance of this class are created to configure the recording parameters for AVAudioRecorder instances. The configured instance is passed to the AVAudioRecorder.ToUrl method to create a new instance of the audio recorder.

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 ();

Requirements

Namespace: MonoMac.AVFoundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0