Re: Decoding AAC/Apple Lossless mono to lpcm stereo
Re: Decoding AAC/Apple Lossless mono to lpcm stereo
- Subject: Re: Decoding AAC/Apple Lossless mono to lpcm stereo
- From: William Stewart <email@hidden>
- Date: Mon, 27 Nov 2006 17:19:47 -0800
Ahm, I would not be so sure about this mono-stereo thing. The common
practise is to duplicate the mono channel as is to the two stereo
channels - otherwise you end up with an attenuated signal and this is
as undesirable affect as any increase in the volume.
We did uncover a problem where the channel map was lost when the
cookie was set on the converter. So, to avoid this (we don't think
we'll change this at this point) is:
- new audio converter
- set cookie on converter
In other words, treat the cookie as a part of the general process of
constructing a converter. I don't think the problem is Reset (but if
it is can you please file a bug).
Thanks
Bill
On 27/11/2006, at 4:25 PM, Dominic Feira wrote:
Brad,
Thanks for the fast response.
This isn't mixing. As you say, this just replicating the audio
data to multiple channels. This is what the channel map property
is for AFAIK.
Also, I seem to have just figured out the problem. I always figure
things out right after I hit send. Apparently AudioConverterReset
() throws out the channel map for some converters and not others.
I'm not sure what the defined behavior is supposed to be.
Thanks for the additional info though. I didn't realize that by
replicating the mono audio to both stereo channels that this was
considered too loud.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
On Nov 27, 2006, at 7:20 PM, Brad Ford wrote:
On Nov 27, 2006, at 4:13 PM, Dominic Feira wrote:
Can an AudioConverter decode AAC-mono to lpcm-stereo or Apple
Lossless-mono to lpcm-stereo?
No. AudioConverters don't mix.
I am able to decode *all* other audio formats to lpcm stereo
correctly by using a channel map.
I don't see how this could be true. If you're using a channel
map, you're likely replicating one channel of input to two
channels of output (and now the result is too loud), or dropping
one channel of input when going stereo->mono.
If you're going stereo->mono or mono->stereo, you really need to
perform a mix yourself, use a mixer audio unit, or use something
like QuickTime's SCAudio component, which has the same interface
as AudioConverterFillComplexBuffer (see SCAudioFillBuffer in
QuickTimeComponents.h), but _does_ perform a mix for you.
-Brad Ford
QuickTime Engineering
It seems as if the AAC and ALAC converters are not respecting the
channel map at all.
Setting the map on the AAC converter does not return an error.
While debugging this, I also ask the converter for the channel
map right after I set it and everything appears correct. Both
output channels are mapped to channel 0.
Thanks.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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