RE: PCI Audio Driver and takeTimeStamp
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