# Multiple Audio Sources with different channel counts

**URL:** <https://forum.juce.com/t/multiple-audio-sources-with-different-channel-counts/14068>\
**Category:** General JUCE discussion\
**Created:** [December 19, 2014, 4:00pm UTC](https://forum.juce.com/t/multiple-audio-sources-with-different-channel-counts/14068 "2014-12-19T16:00:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrenw2112](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@darrenw2112](https://forum.juce.com/u/darrenw2112)\
**Post date:** [December 19, 2014, 4:00pm UTC](https://forum.juce.com/t/multiple-audio-sources-with-different-channel-counts/14068/1 "2014-12-19T16:00:39Z")

</div>

What is the best way to take multiple audio sources **of&nbsp;varying&nbsp;channel counts** and&nbsp;route (mix) them all to separate channels through an AudioTransportSource(). &nbsp;Would you:

Player \<- AudioTransportSource(&nbsp;positionable&nbsp;) \<- mixer \<- multiple PositionableAudioSources&nbsp;

Should this all be handled through a custom mixer class (perhaps a take on the PositionableMixerAudioSource mentioned here a while back)? &nbsp;If this is the correct route, I would assume that in the buffer-\>addFrom()&nbsp;I would have to adjust the gain if I put more that one input into an output to prevent from clipping, correct?&nbsp;
