• 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: PCI Audio Driver and takeTimeStamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: PCI Audio Driver and takeTimeStamp


  • Subject: RE: PCI Audio Driver and takeTimeStamp
  • From: "David Tan" <email@hidden>
  • Date: Tue, 9 Dec 2008 14:47:05 +0800

Hi Peter,

Actually I'm also working on it now. As I understanding, takeTimeStamp() can
be called anywhere in the driver. And in my audio driver, I even have to
call it periodically based on the data I have processed.

Best Regards,
David Tan,
Software Engineer,
Dextrys Co., Ltd.
-----Original Message-----
From: coreaudio-api-bounces+david.tan=email@hidden
[mailto:coreaudio-api-bounces+david.tan=email@hidden] On
Behalf Of Peter Johnson
Sent: Tuesday, December 09, 2008 2:11 PM
To: email@hidden
Subject: PCI Audio Driver and takeTimeStamp

Hi

I'm writing a PCI audio driver for an audio/video capture card. I'm a little
confused by the usage of takeTimeStamp(). For instance, the documentation
and the SamplePCIAudioDriver example calls takeTimeStamp(false) from within
the audio engine performAudioEngineStart(), however, the
AudioReflectorDriver does not. Is there a reason for this?

This is further confusing me because the IOAudioFamily is reporting "missed
samples" (I built a debug version the kext) when my own driver calls
takeTimeStamp(false) from my performAudioEngineStart().

So, is it necessary to call takeTimeStamp(false) when the engine starts and
therefore reset the loop count and start the engine from the beginning of
the sample buffer, and is the IOAudioFamily spuriously reporting missed
samples because the buffer indices have jumped to the start? (in other
words, should I just ignore those messages).

cheers
peter

 _______________________________________________
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

 _______________________________________________
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: PCI Audio Driver and takeTimeStamp
      • From: Peter Johnson <email@hidden>
References: 
 >PCI Audio Driver and takeTimeStamp (From: Peter Johnson <email@hidden>)

  • Prev by Date: Re: Remote-controlling Logic (and possibly other programs)
  • Next by Date: Re: Remote-controlling Logic (and possibly other programs)
  • Previous by thread: PCI Audio Driver and takeTimeStamp
  • Next by thread: Re: PCI Audio Driver and takeTimeStamp
  • Index(es):
    • Date
    • Thread