Re: Audio playing too quickly
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