• 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
SR conversion and AUHAL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SR conversion and AUHAL


  • Subject: SR conversion and AUHAL
  • From: Bjorn Roche <email@hidden>
  • Date: Thu, 8 Dec 2005 10:54:44 -0500 (EST)

Hey CoreAudio folks,


I've been squinting at code and docs for a long time here, so sorry if I am missing something obvious. Anyway, I understand from here:


http://developer.apple.com/technotes/tn2002/tn2091.html#FORMATS

that AUHAL does NOT provide sample rate conversion when doing input. I think I saw a mailing list posting to that effect as well.

However, the PDFs on CoreAudio state:

An application can use an AudioOutputUnit to interface to a device. The DefaultOutputAudioUnit tracks the selection of a device by the user as the default output for audio, and provides additional services such as sample rate conversion, to provide a simpler means of interfacing to an output device.

So my conclusion was: "AudioOutputUnit does SR conversion for output, but not input, so I will need to take care of input SR conversion myself using an AudioConverter"

All well and good, but when I tried, I noticed I always had buffer under/over-runs, so I skipped the conversion and everything seems to work fine, and I get the same number of frames in and out over the long run. It's entirely possible that I am not setting the sample rates correctly, or something else dumb, but I'd like to clarify:

When, if ever, do I need to do SR conversion when using AUHAL?

TIA,

	bjorn

-------------
Bjorn Roche
Check out my CD Mastering Software
for Mac OS X : http://www.xowave.com
_______________________________________________
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


  • Follow-Ups:
    • Re: SR conversion and AUHAL
      • From: Philippe BERNERY <email@hidden>
  • Prev by Date: Updating a Sound File with Metadatas QT7
  • Next by Date: Re: SR conversion and AUHAL
  • Previous by thread: Updating a Sound File with Metadatas QT7
  • Next by thread: Re: SR conversion and AUHAL
  • Index(es):
    • Date
    • Thread