• 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
How do I set the sample rate of the output in a play-only audio unit iPhone app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I set the sample rate of the output in a play-only audio unit iPhone app?


  • Subject: How do I set the sample rate of the output in a play-only audio unit iPhone app?
  • From: Andrew Smith <email@hidden>
  • Date: Fri, 13 Feb 2009 09:11:09 -0700

I've been going back and forth with this -- the issue being that first gen iPhones seem to use a sample rate of 8000Hz for the mic input, and 44100 for the output normally.
 
I want to get 48000 out, but setPreferredHardwareSampleRate fails, since it (apparently) is trying to set the input, or maybe both the input and the output, and the device refuses to go above 8000 for the built-in mic. I suppose that the hardware doesn't support this.
 
I need to use audio units, and the only place that I could find to set a sample rate is in the stream format. But the device (framework?) seems to ignore this also. In fact, if I intercept a stream and check the format, the sample rate is set to 0.
 
I think there is a way to do this, but I am stumped.
 
Any information, or pointers to information would be appreciated.

Andrew

 _______________________________________________
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

  • Follow-Ups:
    • Re: How do I set the sample rate of the output in a play-only audio unit iPhone app?
      • From: William Stewart <email@hidden>
  • Prev by Date: Getting Audio Stream/File info
  • Next by Date: aurioTouch crashing the simulator
  • Previous by thread: Re: Getting Audio Stream/File info
  • Next by thread: Re: How do I set the sample rate of the output in a play-only audio unit iPhone app?
  • Index(es):
    • Date
    • Thread