Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
With the native MultiChannelMixer sample from apple I can go up to 200 input channels with the iphone simulator (methods AUGraphSetNodeInputCallback and AudiUnitSetProperty succeed).
With MonoTouch, all the calls to AudioUnit.SetRenderCallback, AudioUnit.SetParameters, ... systematically fails returning error "InvalidElement" when the input bus index is higher than 8.
This problem prevent me from mixing more than 8 musics together.
AUGraphSetNodeInputCallback is not yet available in our bindings, do you have a sample which exercises this api?
Created attachment 4768 [details]
sample of the problem
I added two samples:
- one derived from the apple 'iPhoneMultichannelMixerTest' sample. Important code is located in 'MultichannelMixerController.mm'file and initializeAUGraph function.
- one from derived the xamarin 'AUSoundTriggeredPlayingSoundMemoryBased'. Important code is located in 'ExtAudioBufferPlayer.cs' file and 'prepareAudioUnit' function.
8 happens to be default for the mixer. You need to call SetElementCount method to set the actual number of bus elements on the audio unit.