[Mono-bugs] [Bug 689985] New: I found the following issue in your latest release of MonoTouch

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 26 12:29:04 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=689985

https://bugzilla.novell.com/show_bug.cgi?id=689985#c0


           Summary: I found the following issue in your latest release of
                    MonoTouch
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: iPhone
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: pchew at planelements.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Third Party Developer/Partner
           Blocker: ---


Description of Problem:

The following code was executing no problem last night.  I took this sample
code from your Monotouch Forum and the code has been working for the last 3
weeks or so.  It only started failing this morning when I was upgraded to the
latest version of Monotouch.

NSObject[] values = new NSObject[]
                {    
                    NSNumber.FromFloat(44100.0f),
                    NSNumber.FromInt32((int)AudioFileType.WAVE),
                    NSNumber.FromInt32(1),
                    NSNumber.FromInt32((int)AVAudioQuality.Max)
                };

                NSObject[] keys = new NSObject[]
                {
                    AVAudioSettings.AVSampleRateKey,
                    AVAudioSettings.AVFormatIDKey,
                    AVAudioSettings.AVNumberOfChannelsKey,
                    AVAudioSettings.AVEncoderAudioQualityKey
                };

                NSDictionary settings = NSDictionary.FromObjectsAndKeys
(values, keys);

                //Declare string for application temp path and tack on the file
extension
                //string tempRecording = audioFilePath;

                Console.WriteLine(audioFilePath);

                NSError error = new NSError ();

                //Set recorder parameters
                AudioSession.Category = AudioSessionCategory.RecordAudio;
                AudioSession.RoutingOverride =
AudioSessionRoutingOverride.None; 

                recorder = AVAudioRecorder.ToUrl(this.RecordedAudioUrl,
settings, out error);

                //Set Metering Enabled so you can get the time of the wav file
                recorder.MeteringEnabled = true;

                recorder.PrepareToRecord();            
                recorder.Record();

The error is happening when I am attempting to load the recorder using the
ToUrl() method.  The error being returned is:

"the operation couldn't be completd.  (OSStatus error 1718449215)"

thank you for looking into this for me.

Pierre Chew
pchew at planelements.com


Steps to reproduce the problem:
1. 
2. 


Actual Results:


Expected Results:


How often does this happen? 


Additional Information:

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list