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));
     }
 }
예제 #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;
            }
        }
예제 #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);
            }
        }
예제 #6
0
파일: Events.cs 프로젝트: kangaroo/maccore
 public override void FinishedRecording(AVAudioRecorder recorder, bool flag)
 {
     if (cbFinishedRecording != null)
         cbFinishedRecording (recorder, new AVStatusEventArgs (flag));
 }
예제 #7
0
파일: Events.cs 프로젝트: kangaroo/maccore
 public override void EndInterruption(AVAudioRecorder recorder)
 {
     if (cbEndInterruption != null)
         cbEndInterruption (recorder, EventArgs.Empty);
 }
예제 #8
0
파일: Events.cs 프로젝트: kangaroo/maccore
 public override void EncoderError(AVAudioRecorder recorder, NSError error)
 {
     if (cbEncoderError != null)
         cbEncoderError (recorder, new AVErrorEventArgs (error));
 }