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);
            }
        }
Example #2
0
		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;
			}
		}
Example #3
0
		AVAudioRecorder (NSUrl url, AudioSettings settings, out NSError error) {
			// We use this method because it allows us to out NSError but, as a side effect, it is possible for the handle to be null and we will need to check this manually (on the Create method).
			Handle = InitWithUrl (url, settings.Dictionary, out error);
		}	
 AVAudioRecorder(NSUrl url, AudioSettings settings, out NSError error)
 {
     // We use this method because it allows us to out NSError but, as a side effect, it is possible for the handle to be null and we will need to check this manually (on the Create method).
     Handle = InitWithUrl(url, settings.Dictionary, out error);
 }