Bug 36530 - AudioToolbox.AudioConverter.FillComplexBuffer System.ArgumentException
Summary: AudioToolbox.AudioConverter.FillComplexBuffer System.ArgumentException
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.2
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Alex Soto [MSFT]
Depends on:
Reported: 2015-12-03 13:35 UTC by renan jegouzo
Modified: 2016-02-03 22:59 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description renan jegouzo 2015-12-03 13:35:55 UTC
System.ArgumentException: ref argument outDataPacketDescription has to be set

in viewcontroller.cs
stream=new AudioStream("http://audio.scdn.arkena.com/11012/francemusique-midfi128.mp3"); 
will raise the exception

stream=new AudioStream("");	
is working

both streams are working with the same code on OSX.

test project: http://share.aestesis.org/TestAudioConverter.zip
Comment 1 renan jegouzo 2015-12-03 13:56:36 UTC
Xamarin Studio
Version 5.10.1 (build 3)
Installation UUID: 2a46676f-5eb8-4569-9aa7-630cd15bdfc2
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

Not Installed

Apple Developer Tools
Xcode 7.1.1 (9081)
Build 7B1005

Version: (Business Edition)
Hash: eb4c1ef
Branch: master
Build date: 2015-12-01 02:12:30-0500

Version: (Business Edition)

Version: (Business Edition)
Android SDK: /Volumes/ssd/android-sdk-macosx
	Supported Android versions:
		4.2 (API level 17)
		5.1 (API level 22)
		6.0 (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Xamarin Android Player
Not Installed

Build Information
Release ID: 510010003
Git revision: f2021a209d66d49cbc0649a6d968b29040e57807
Build date: 2015-12-01 10:43:40-05
Xamarin addins: dfd4f5103e8951edbc8ac24480b53b53c55e04ff
Build lane: monodevelop-lion-cycle6-baseline

Operating System
Mac OS X 10.11.1
Darwin macbook.home 15.0.0 Darwin Kernel Version 15.0.0
    Sat Sep 19 15:53:46 PDT 2015
    root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
Comment 3 Sebastien Pouliot 2015-12-16 01:55:38 UTC
This sample works fine (both on simulator and devices) with our latest internal builds. There's been several fixes done in audio API recently and the result will be available in our next cycle.

You might want to try the previews we have for tvOS/watchOS as they contains some of those fixes (and future one will contain all of them).
Comment 4 renan jegouzo 2015-12-16 04:00:34 UTC
it will be fixed for OSX too ?
Comment 5 Sebastien Pouliot 2015-12-16 22:09:55 UTC
The next version of Xamarin.Mac will ship the same code - it's 98% identical but there's a few OS specific differences.

> both streams are working with the same code on OSX.

and those might explain why that stream worked for you before.

If you want to attach an XM test case then QA will be able to verify this before the next release.
Comment 6 renan jegouzo 2016-01-22 11:41:25 UTC
when it will be available ? for the common mortals using stable channel ?
Comment 7 renan jegouzo 2016-01-22 11:42:15 UTC
that you'd like to deliver his app to  his client ?
Comment 8 renan jegouzo 2016-01-22 11:43:24 UTC
even if the due date is over..
Comment 9 Rolf Bjarne Kvinge [MSFT] 2016-01-22 15:30:50 UTC
The current plan is to have the first alphas out in about a month (but this is no guarantee, it's been delayed before and can be delayed again). Then it will reach the stable channel 6-8 weeks after that.
Comment 10 renan jegouzo 2016-01-22 16:21:15 UTC
aTV Kit will be available at same time ?
Comment 11 renan jegouzo 2016-01-22 16:22:13 UTC
3 months a long time before I can release anything with Xamarin..
I can take a 3 months vacation so..
Comment 12 Rolf Bjarne Kvinge [MSFT] 2016-01-22 16:26:45 UTC
Our support for tvOS will come in the same release, yes.
Comment 13 renan jegouzo 2016-01-22 17:11:51 UTC
nice :)

I will switch to alpha channel so when it will be available, and at this time I will confirm that all is OK for me with the AudioToolbox API.
Comment 14 Sebastien Pouliot 2016-01-22 20:53:14 UTC
The tvOS previews [1] that we have already contains the fix for iOS (and tvOS) and there's also Mac preview coming out soon [12]. Those are pre-alpha but, if you're blocked, they can't hurt.

[1] https://developer.xamarin.com/guides/ios/tvos/

[2] for binding projects, but it will have the fix for OSX. Look at the forums for an announcement soon.
Comment 15 renan jegouzo 2016-02-03 22:59:18 UTC
seems better with preview version, thanks.
but lots of other annoying stuff in preview studio..