• 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
hardcoded microphone buffering in iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hardcoded microphone buffering in iPhone?


  • Subject: hardcoded microphone buffering in iPhone?
  • From: Nate <email@hidden>
  • Date: Sun, 23 Nov 2008 18:39:28 -0800

I tell the iPhone mic to open at 22050hz sample rate with a 2048 byte buffer. My callback gets called with 2048 bytes with this many seconds between calls...

0.185520
0.000077
0.000041
0.000039
0.185546
0.000075
0.000043
0.000042

It looks like it's internally buffering 8192 bytes, then hitting my callback 4 times with 2048 each time. Is this true? How can I get it to call my callback as soon as it collects 2048 bytes? IE, every ~0.046 seconds.

FWIW, I am seeing this behavior in the simulator (2.2), I don't have an actual iPhone at the moment to try it on.

Thanks,
-Nate
 _______________________________________________
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: hardcoded microphone buffering in iPhone?
      • From: Inca Rose <email@hidden>
  • Prev by Date: Re: Real-Time Audio Analysis
  • Next by Date: Re: hardcoded microphone buffering in iPhone?
  • Previous by thread: Re: How to implement a time line? (current playing time line)
  • Next by thread: Re: hardcoded microphone buffering in iPhone?
  • Index(es):
    • Date
    • Thread