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));
     }
 }
Example #4
0
        public static AVAudioRecorder ToUrl(NSUrl url, NSDictionary settings, out NSError error)
        {
            unsafe {
                IntPtr errhandle;
                IntPtr ptrtohandle = (IntPtr) (&errhandle);

                var ap = new AVAudioRecorder (url, settings, ptrtohandle);
                if (ap.Handle == IntPtr.Zero){
                    error = (NSError) Runtime.GetNSObject (errhandle);
                    return null;
                } else
                    error = null;
                return ap;
            }
        }
Example #5
0
        public static AVAudioRecorder ToUrl(NSUrl url, NSDictionary settings, out NSError error)
        {
            unsafe {
                IntPtr errhandle;
                IntPtr ptrtohandle = (IntPtr)(&errhandle);

                var ap = new AVAudioRecorder(url, settings, ptrtohandle);
                if (ap.Handle == IntPtr.Zero)
                {
                    error = (NSError)Runtime.GetNSObject(errhandle);
                    return(null);
                }
                else
                {
                    error = null;
                }
                return(ap);
            }
        }
Example #6
0
 public override void FinishedRecording(AVAudioRecorder recorder, bool flag)
 {
     if (cbFinishedRecording != null)
         cbFinishedRecording (recorder, new AVStatusEventArgs (flag));
 }
Example #7
0
 public override void EndInterruption(AVAudioRecorder recorder)
 {
     if (cbEndInterruption != null)
         cbEndInterruption (recorder, EventArgs.Empty);
 }
Example #8
0
 public override void EncoderError(AVAudioRecorder recorder, NSError error)
 {
     if (cbEncoderError != null)
         cbEncoderError (recorder, new AVErrorEventArgs (error));
 }