• 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: Format mismatch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Format mismatch (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Format mismatch
  • Next by Date: detailed linker results
  • Previous by thread: Format mismatch
  • Next by thread: Re: Format mismatch
  • Index(es):
    • Date
    • Thread