Re: Format mismatch
Re: Format mismatch
- Subject: Re: Format mismatch
- From: "Mark's Studio" <email@hidden>
- Date: Mon, 4 Oct 2004 17:54:57 +0200
On 4/10-2004, at 16:43, kelly jacklin wrote:
On Oct 4, 2004, at 3: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?
Actually, I believe that's CocoaAUHost behaving correctly...
The CocoaAUHost sets the sample rate for the AUs to the sample rate of the file, and then the output unit does SRC to match its input format to its output format. Presumably the theory is that it's better to apply SRC at the end of the chain, rather than the beginning, because if you apply it at the beginning any noise introduced by the SRC will pass through the entire signal chain.
kelly
My problem is that my processing is altivec unrolled by 8 so im skipping samples,is there a smart way to buffer the data and only call my altivec function when there is enough frames ?
As for the SRC at the end, im not sure it's the best solution since the processing can't compensate for the artifacts introduced by the SRC.
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
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