• 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: SoundConverterConvertBuffer() is broken on Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SoundConverterConvertBuffer() is broken on Mac OS X


  • Subject: Re: SoundConverterConvertBuffer() is broken on Mac OS X
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 13 Dec 2001 11:30:11 -0800

on 12/13/01 9:55 AM, Andrew Taylor <email@hidden> wrote:

> I imagine that this affects the data that is delivered in the sound
> buffers and therefore why SoundConverterConvertBuffer does not work
> as expected.

Compression type 'NONE' == Compression type 'twos'. This isn't your trouble.

> Now what can I do about it?

You've fallen into the trap of assuming things about how the device works.
As you observed, there are subtle differences in the behavior of the parts
of the Sound Manager that touch the hardware (the sinp and sdev components).

You should never make assumptions about the behavior of things with the
Sound Manager, not even on 9. You should always ask the device about the
format it is giving you, or set it yourself explicitly. Otherwise, your code
will break eventually. I guarantee it.

--

Jeff Moore
Core Audio
Apple


References: 
 >Re: SoundConverterConvertBuffer() is broken on Mac OS X (From: Andrew Taylor <email@hidden>)

  • Prev by Date: AGC on/off selector causes -231 error
  • Next by Date: Re: AGC on/off selector causes -231 error
  • Previous by thread: Re: SoundConverterConvertBuffer() is broken on Mac OS X
  • Next by thread: Re: SoundConverterConvertBuffer() is broken on Mac OS X
  • Index(es):
    • Date
    • Thread