Re: Format mismatch
Re: Format mismatch
- Subject: Re: Format mismatch
- From: David Duncan <email@hidden>
- Date: Mon, 4 Oct 2004 08:34:39 -0400
On Oct 4, 2004, at 06:21 AM, Mark's Studio wrote:
I was testing my AU with CocoaAUHost and was getting a weird
numberOfFrames to process 468 and 472, so my AU was behaving strange,
but i found that it was because the hardware was set at 48Khz, the
file played was 44.1Khz. and GetSampleRate() returned 44.1Khz.
Is there anyway i can check for format mismatch, or is it just the
CocoaAUHost that behaves wrong?
The sample rate converter higher up in the chain than your AU will
request 468 or 472 samples when up sampling from 44.1 Khz to 48 Khz (to
produce 512 samples at 48 Khz requires 470.4 samples at 44.1 Khz). The
rounding to a multiple of 4 samples is for performance reasons (likely
so that you get complete vectors for Altivec acceleration). The
requests your seeing are quite normal and expected.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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