• 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: synchronizing iMic I/O
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: synchronizing iMic I/O


  • Subject: Re: synchronizing iMic I/O
  • From: Andrew Kimpton <email@hidden>
  • Date: Mon, 14 Jul 2003 20:06:22 -0700

email@hidden wrote:

I'm trying to synchronize the input and output of an iMic. I was going to call AudioDeviceRead() from the output proc. AudioHardware.h says:

"The valid range of time that can be read is from the current time minus
the maximum buffer size minus the safety offset to the current time mins
the safety offset."

I can't quite figure out what it's tring to say. Which AudioTimeStamp
should I use for AudioDeviceRead(), inNow or inOutputTime?


The mechanism I use (suggested by Jeff Moore) is to establish an 'anchor time' using one of the Device 'GetTime' routines (sorry I don't recall the full prototype) during initialization.

I then increment that time by 'n' frames (buffer size) in each IOProc (for the output device) and call AudioDeviceRead() with the updated time.

I've just recently run into something 'wierd' with long recordings (> 24 mins on an EMI 2|6)- but I'm not yet sure it's not my own problem (rather than something up with coreaudio). Tomorrows task for me is to narrow down a bit more what's going on

Andrew 8-)
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >synchronizing iMic I/O (From: email@hidden)

  • Prev by Date: AudioUnit gui window in java
  • Next by Date: Re: efficient device channel enabling - was Re: fIsMixable
  • Previous by thread: synchronizing iMic I/O
  • Next by thread: Re: synchronizing iMic I/O
  • Index(es):
    • Date
    • Thread