What is KVR Audio? | Submit News | Advertise | Developer Account

Options (Affects News & Product results only):

Quick Search KVR

"Quick Search" KVR Audio's Product Database, News Items, Developer Listings, Forum Topics and videos here. For advanced Product Database searching please use the full product search. For the forum you can use the phpBB forum search.

To utilize the power of Google you can use the integrated Google Site Search.

Products 0

Developers 0

News 0

Forum 0

Videos 0


Stereo file, mono output

DSP, Plug-in and Host development discussion.

Moderator: Moderators (Main)

11 posts since 3 Oct, 2012

Postby gbrules; Tue Nov 13, 2012 6:48 pm Stereo file, mono output

I've been trying to find the answer to this question be cannot. Lets say I have a stereo file but the track is set to mono. Do audio units handle the summing of the stereo tack to a single buffer of audio data?

So in my process function I can always assume that inBuffer.mNumberBuffers == outBuffer.mNumberBuffers if interleaved or not? What about in the case of a surround file to stereo or mono? If someone either has the answer, and/or can point to some documentation about this that'd be great.

8431 posts since 8 Mar, 2005, from Utrecht, Holland

Postby BertKoor; Wed Nov 14, 2012 1:30 am

I don't know specificaly how it is with audio units. But effects plugins can (or should be able to) implement any combination of input/output channel counts: mono --> stereo, mono --> surround, stereo --> mono. Most often you'd want mono --> mono and stereo --> stereo. But ofcourse this depends on what your effect actually does. I would not depend on the host doing summing to mono. If you want mono output, then only provide a mono output. Simple as that me thinks....

BTW: in the context of effects plugins it's better to name it a "channel" rather than a "file". You don't know where it comes from... Could be a synth providing the audio, not from a file as such.
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is back online!!

Moderator: Moderators (Main)

Return to DSP and Plug-in Development