• 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: Channel Swapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Channel Swapping (From: Brad Howes <email@hidden>)

  • Prev by Date: Channel Swapping
  • Next by Date: Re: crash in HALPlugIn::iSight::Frame::StreamHandler
  • Previous by thread: Channel Swapping
  • Index(es):
    • Date
    • Thread