Re: Channel Swapping
Re: Channel Swapping
- Subject: Re: Channel Swapping
- From: Steve Bird <email@hidden>
- Date: Fri, 30 Apr 2004 07:27:19 -0400
On Apr 30, 2004, at 6:44 AM, Brad Howes wrote:
I've been lurking on this list to help get me up to speed on CoreAudio
programming. I've built an application for work that plays Sun ulaw
audio 8kHz 2-channel fine, except that the left and right channels are
swapped compared to playback on the Sun. In my fill proc for
AudioConverterFillComplexBuffer, I've resorted to doing a manual swap
of each pair of bytes after I read them in with AudioFileReadPackets.
But this smells like teen hack. I've looked at some of the channel
mapping code, but could not find much documentation on it. Any ideas?
--- Consider the possibility that you are off by one sample when
starting. In other words, maybe you skipped too much or not enough data
at the beginning, so what you think is sample #0 on the left channel is
actually sample #0 on the right, or it's sample #-1 on the right.
Everything after that would be channel-swapped.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.