• 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
Think I've found an AudioConverter bug: Sanity-check please?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Think I've found an AudioConverter bug: Sanity-check please?


  • Subject: Think I've found an AudioConverter bug: Sanity-check please?
  • From: Michael Tyson <email@hidden>
  • Date: Wed, 05 Jun 2013 16:59:34 +1000

Hi guys,

I think I've discovered a problem with AudioConverter when applying a channel map to interleaved stereo audio formats, and would love someone to look over my shoulder and see if I am in fact just doing something stupid.

If I have an interleaved 16-bit stereo format (used for input and output), and apply a channel map to the converter of the form {0,0} or {1,1}, then the output seems to contain the wrong input frames.

For example, if I fill the (interleaved) input buffer with monotonically incrementing integers {0,1,2,3,4,5,6...}, then were I to use a channel map with {0,0} - that is, replicate the left input channel in both output channels - then I'd expect to see: {0,0,2,2,4,4,6,6,...}.

Instead, the audio converter gives {0,0,1,1,2,2,3,3,...}, resulting in half-rate audio.

The problem doesn't occur if I switch to using non-interleaved formats.

I've created a sample project that demonstrates this, here: https://dl.dropboxusercontent.com/u/6956432/AudioConverterTest.zip

You can see the active ingredients in this paste: http://pastebin.com/4KmVVhFN

Would someone be able to have a quick look and make sure I'm not embarrassing myself before I submit a radar?

Cheers,
Michael


-- 
Michael Tyson | atastypixel.com

Audiobus. Live, app-to-app audio streaming is here!
http://audiob.us






 _______________________________________________
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

  • Prev by Date: iOS - Decode an AAC(ADTS) network stream to PCM buffers
  • Next by Date: Re: iOS - Decode an AAC(ADTS) network stream to PCM buffers
  • Previous by thread: Re: iOS - Decode an AAC(ADTS) network stream to PCM buffers
  • Next by thread: Translating a signal chain to CA architecture
  • Index(es):
    • Date
    • Thread