• 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
Sample times in input procs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sample times in input procs


  • Subject: Sample times in input procs
  • From: Neil Clayton <email@hidden>
  • Date: Sun, 6 May 2007 15:32:31 +1200

I'm debugging a play thru error I've got, and I've noticed some behavior I don't understand.  

I'm playing system sound to the Soundflower 2(ch) device (some of you may be familiar with this open-sourced driver from Cycling74).

I'm using this as my input device.
Without any audio playing (from iTunes, for example) - My playthru gets initial sample times of "29" (or, rather, very low numbers).

If I restart my app.  And have sound playing through iTunes, then the first sample time I see in the input proc comes out at about 42513 (or similar).

My question is - is this valid?  An input proc can receive sound with any sample time?   Do I take it that the sample time provided to the input render proc is whatever time the device connected to the render proc gives out?

I'm assuming "yes", but wanted to check here.

Also, is there a definitive API doc for what I can expect to receive in the params to an input proc and what my return code should be?
I looked up AURenderCallback but there's very little (i.e: zero) in the way of descriptive doc in the API reference itself.

---
Regards,
Neil Clayton



 _______________________________________________
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: Sample times in input procs
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Streaming audio to built-in audio device
  • Next by Date: [OT] - Music pauses at random intervalls
  • Previous by thread: Re: syncing core video with core audio
  • Next by thread: Re: Sample times in input procs
  • Index(es):
    • Date
    • Thread