public override void EndInterruption(AVAudioRecorder recorder) { if (cbEndInterruption != null) { cbEndInterruption(recorder, EventArgs.Empty); } }
public override void EncoderError(AVAudioRecorder recorder, NSError error) { if (cbEncoderError != null) { cbEncoderError(recorder, new AVErrorEventArgs(error)); } }
public override void FinishedRecording(AVAudioRecorder recorder, bool flag) { if (cbFinishedRecording != null) { cbFinishedRecording(recorder, new AVStatusEventArgs(flag)); } }
public static AVAudioRecorder Create(NSUrl url, AVAudioFormat format, out NSError error) { if (format == null) { throw new ArgumentNullException(nameof(format)); } error = null; try { AVAudioRecorder r = new AVAudioRecorder(url, format, out error); if (r.Handle == IntPtr.Zero) { return(null); } return(r); } catch { return(null); } }
public static AVAudioRecorder Create(NSUrl url, AudioSettings settings, out NSError error) { if (settings == null) { throw new ArgumentNullException("settings"); } error = null; try { AVAudioRecorder r = new AVAudioRecorder(url, settings, out error); if (r.Handle == IntPtr.Zero) { return(null); } return(r); } catch { return(null); } }
public static AVAudioRecorder Create (NSUrl url, AudioSettings settings, out NSError error) { if (settings == null) throw new ArgumentNullException ("settings"); error = null; try { AVAudioRecorder r = new AVAudioRecorder (url, settings, out error); if (r.Handle == IntPtr.Zero) return null; return r; } catch { return null; } }
public override void EndInterruption (AVAudioRecorder recorder) { if (cbEndInterruption != null) cbEndInterruption (recorder, EventArgs.Empty); }
public override void EncoderError (AVAudioRecorder recorder, NSError error) { if (cbEncoderError != null) cbEncoderError (recorder, new AVErrorEventArgs (error)); }
public override void FinishedRecording (AVAudioRecorder recorder, bool flag) { if (cbFinishedRecording != null) cbFinishedRecording (recorder, new AVStatusEventArgs (flag)); }