https://bugzilla.novell.com/show_bug.cgi?id=663861
https://bugzilla.novell.com/show_bug.cgi?id=663861#c0 Summary: new AVAssetReaderAudioMixOutput(songAsset.Tracks, null) throws exception Classification: Mono Product: MonoTouch Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Class Libraries AssignedTo: gnor...@novell.com ReportedBy: niko...@eodsoft.com QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Exception says "Argument cannot be null". The following fails too: AVAssetReaderOutput assetReaderOutput = new AVAssetReaderAudioMixOutput(songAsset.Tracks, new NSDictionary()); MonoTouchException: "Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** +[AVAudioOutputSettings _outputSettingsWithOutputSettingsDictionary:exceptionReason:] invalid parameter not satisfying: [outputSettingsDictionary count] > 0" Reproducible: Always Steps to Reproduce: 1. Compile and run: MPMediaItem curItem = MPMusicPlayerController.iPodMusicPlayer.NowPlayingItem; NSUrl url = (NSUrl)curItem.ValueForProperty(MPMediaItemProperty.AssetUrl); NSDictionary dict = new NSDictionary(); AVUrlAsset songAsset = AVUrlAsset.FromUrl(assetUrl, dict); NSError error = new NSError(NSObjectFlag.Empty); AVAssetReader assetReader = AVAssetReader._FromAsset(songAsset, error.Handle); if (assetReader == null) { Console.WriteLine(error.LocalizedDescription); return; } AVAssetReaderOutput assetReaderOutput = new AVAssetReaderAudioMixOutput(songAsset.Tracks, null); 2. Exception thrown Actual Results: Exception thrown Expected Results: Should be supported as per iOS documentation: audioSettings The audio settings to be used for audio output; the dictionary must contain values for keys in AVAudioSettings.h (linear PCM only). Pass nil if you want to receive decoded samples in a convenient uncompressed format, with properties determined according to the properties of the specified audio tracks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs