• 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
Setting a different samplerate on an AudioUnit than the one specified in Audio MIDI Setup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting a different samplerate on an AudioUnit than the one specified in Audio MIDI Setup


  • Subject: Setting a different samplerate on an AudioUnit than the one specified in Audio MIDI Setup
  • From: HÃ¥vard Graff <email@hidden>
  • Date: Thu, 7 Jan 2010 23:46:10 +0100

Hi.

I want to make sure I always playout and capture at a samplerate of 48000 Hz, regardless of what a user have set as the Format in Audio MIDI Setup.

By using kAudioUnitProperty_
StreamFormat on my AudioUnit, I am able to always configure 48000.0 for my speakers (using mSampleRate), with sound playing out correctly for any configured Format (Built-In Output Format set to 44100.0 Hz still works)

However, for Capture, I am unable to capture any sound as soon as I set the Format to anything else than 48000.0 Hz, given that I also use the kAudioUnitProperty_StreamFormat to try to force it to 48000.0. Note that I do not get any OSStatus-errors doing capturing with mismatched configs, it simply goes silent.

So, how can I make sure that I can keep capturing at 48000.0 Hz, regardless of what the user have set in Audio MIDI Setup?

regards,
Havard
 _______________________________________________
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

  • Prev by Date: Re: ExtAudioFileSeek doesn't seek properly in m4a file
  • Next by Date: ExtAudioFileConvert questions
  • Previous by thread: Re: ExtAudioFileSeek doesn't seek properly in m4a file
  • Next by thread: ExtAudioFileConvert questions
  • Index(es):
    • Date
    • Thread