• 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: Audio playing too quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio playing too quickly


  • Subject: Re: Audio playing too quickly
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 18 May 2006 16:21:20 -0700

William Stewart wrote:
It does sound to me like you may have some mismatch between the device and client formats...

Have you considered using the output units to do this work for you:
(1) They embed an audio converter, which will handle both int-float and sample rate conversions for you
(2) They handle the sometimes complex device topology, including disabling parts of the device that you aren't using
(3) They have channel mapping capability - both customisable ones as well as default ones (for instance, a stereo input will by default play to the user's default stereo output).
(4) We've highly optimised the code paths through this AU, so the overhead that is added is only what you need to do what you are asking it to do
(5) Its much easier to use than dealing with the HAL directly


I did look at it once a while ago but ended up not using it for reasons I no longer recall. After having spent a fair amount of time writing and re-writing code to deal with the HAL, I find it pretty simple. At least, it's simple to add some property listeners, and start an IO proc and send it some data. This has worked well for me, but apparently I need to consider more than setting a stream format and passing it data.

Thank you for the suggestion, I'll look into it again.

- Steve

_______________________________________________
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: Audio playing too quickly
      • From: Steve Checkoway <email@hidden>
References: 
 >Audio playing too quickly (From: Steve Checkoway <email@hidden>)
 >Re: Audio playing too quickly (From: Norman Franke <email@hidden>)
 >Re: Audio playing too quickly (From: William Stewart <email@hidden>)

  • Prev by Date: Re: rendering musicplayer/augraph right to disk, no speaker output
  • Next by Date: hardware output latency
  • Previous by thread: Re: Audio playing too quickly
  • Next by thread: Re: Audio playing too quickly
  • Index(es):
    • Date
    • Thread