Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4242586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:27:43+00:00 2026-05-21T03:27:43+00:00

Is anyone out there using the simulator to handle 8kHz audio at the AudioUnit

  • 0

Is anyone out there using the simulator to handle 8kHz audio at the AudioUnit level?

The iPhone simulator audio only works for 44100Hz, 22050Hz, and 11025Hz. It fails strangely otherwise.

I am having trouble recording audio in the iPhone simulator. The code works fine on a hardare device but fails strangely in the simulator.

I am working on the AudioUnit level and I set the sampling rate (via audio session properties) to 8000Hz. Works fine on hardware, but on the simulator the render callback asks for one appropriately sized chunk of data and then calls back every 11.6ms asking for a single byte.

I tried setting the sample rate to 44100/4 (11025Hz) and it worked fine. So I tried setting the audio session sample rate to 11024 and it broke. Same with 11026. 11025 works.

My supposition is that there is a bug in the simulator’s audio code. I think it internally must have a buffer that is a quarter second long and it can’t handle situations where the sample rate is not some multiple of that.

Can anyone try this in their own code in the simulator? Try sampling rates of 11024, 11025, and 11026, and see if only 11025 works?

UPDATE: If I ask for 11024 it gives me 8000, but the render callback keeps delivering ioData asking for only a single frame (1 byte). Same behavior when I ask for 8000Hz.

UPDATE2: The simulator also works fin when I program at the AudioQueue API level. It handles 8kHz there. It just seems to screw up at the AudioUnit API level.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:27:44+00:00Added an answer on May 21, 2026 at 3:27 am

    As near as I can tell, the simulator goes into a dysfunctional mode when you ask its Remote I/O unit to work in 8kHz mode. Or any mode other than a multiple of 44100/4.

    Once again, it’s not that it was rejecting my format or suggesting a better one. The problem is that it pretends to agree, then goes into a weird mode asking for one or two bytes at a time, probably because of some fencepost error.

    If I set the unit subtype to VoiceProcessingIO, 8kHz works fine, thought the microphone side gets a little fussy every few reads.

    So the problem is that the Simulator’s Remote I/O unit claims to support 8kHz, but it only works if you configure it as a VoiceProcessing subtype.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone out there using the FTUtils library for iPhone development? Following the instructions here
Anyone out there using YAML as a data DSL in .NET? I'd like to
Anyone out there using the new CSHTML pages feature and is finding that they
Is anyone out there using the Prism framework with Ninject instead of Unity? I
Is anyone out there using S#harp Architecture with VS 2010/.Net 4.0? We are looking
Is anyone out there using MVC v2 preview 2 out in production yet? Can
Is anyone out there using a timeout on with the google maps API? I
Anyone out there using Fogbugz and Scrum together? We use Fogbugz extensively, and I'm
Is anyone out there using Team Foundation Server within a team that is geographically
Is anyone out there still using DataFlex? If so, what are you favorite tips

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.