• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi Channel Mixer Unit with large number of channels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi Channel Mixer Unit with large number of channels


  • Subject: Re: Multi Channel Mixer Unit with large number of channels
  • From: Aran Mulholland <email@hidden>
  • Date: Mon, 1 Nov 2010 10:10:35 +1100

if you are doing this on the iphone (as the example you posted is an iPhone one), are you just running out of processing power? 300 sin calls @ 44100 would take a fair bit of grunt. If you cant generate samples fast enough you could miss the deadline.

Aran

On Mon, Nov 1, 2010 at 7:45 AM, Bruno Berisso <email@hidden> wrote:
Thanks for your responds, but I must admit that brings me more doubts that certainties...
Now I set the input and output volume and number of channels in the mixer unit and I can play 300 sin() waves, with more than that i have no sound.

When you say 'gain' are you referring to the kMultiChannelMixerParam_Volume parameter?
Is there some example of a situation like this (huge number of channels) or I try something stranger?

Regards.

On Oct 30, 2010, at 7:05 PM, Brian Willoughby wrote:


On Oct 30, 2010, at 05:52, Bruno Berisso wrote:
I'm writing a test program that must play 'n' signals (about 600) at the same time.
In my first try I use the "number of channels in the output unit = n" but it's distorts the sound or even no play any sound.

Now I try using the kAudioUnitSubType_MultiChannelMixer and following the same logic ( "number of channels in the output unit = n") the results are the same.
I was thinking in connect the necessary number of multi channel mixers unit in cascade to achieve the number of signals I must process, but i really don't know if it's good idea...

What is the approach in this kind of situations?


You should not need any more than one mixer.  I believe that your problem is amplitude.  You have to adjust the input and output volume of the mixer, or else 600 signals will be at least 300 to 600 times too loud, resulting in distortion.  Mixers do not automatically adjust volume.  The only way to automatically adjust volume is with a limiter, such as Apple's AUPeakLimiter.

You can try the limiter, but you might not like the fact that you won't have constant volume.  Also, I'm not sure that AUPeakLimiter can apply the 55 dB of gain reduction that you need for 600 mixed signals, but you might start with -40 dB pre-gain and hope that the 20 dB of limiting amount is enough after that.

Then again, you might be better off just setting a fixed gain of -56 dB on your mixer output and be done with it.  CoreAudio's floating point format makes this easy to handle in a simple way.

This is all basic audio mixing technique, something you would need to handle yourself even in an analog mixing studio; it's not an issue that's specific to CoreAudio.

Brian Willoughby
Sound Consulting


-- 
SouthLabs |  www.southlabs.com
Apple recommends SharePlus


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Multi Channel Mixer Unit with large number of channels (From: Bruno Berisso <email@hidden>)
 >Re: Multi Channel Mixer Unit with large number of channels (From: Brian Willoughby <email@hidden>)
 >Re: Multi Channel Mixer Unit with large number of channels (From: Bruno Berisso <email@hidden>)

  • Prev by Date: Re: audio-specific UI component libraries for Cocoa?
  • Next by Date: Re: audio-specific UI component libraries for Cocoa?
  • Previous by thread: Re: Multi Channel Mixer Unit with large number of channels
  • Next by thread: cocoa view / AU interaction
  • Index(es):
    • Date
    • Thread