Getting Audio Time

Aug 5 at 9:17 PM
I am looking at the source code, and trying to find a way to keep track of the Audio Time.
Not Duration but actual device timer.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd370859(v=vs.85).aspx
pu64DevicePosition [out]

That most likely.

Pretty much what this application those: http://forum.exkode.com/index.php?topic=324.0
Coordinator
Aug 6 at 9:56 AM
yes, this is supported in NAudio. Have a look at the GetPosition method on the IWavePosition interface which is inplemented by WasapiOut. However, I did some recent fixes to IAudioClockClient, so you might find it best if you build from the latest source.
Aug 7 at 2:56 PM
Looked at it.

Hmm, trying to find a way to use it to add silence when recording if it's skipping stuff.
Normally use StopWatch, but as it's going by the PC clock it's not correct.

I would have to have it check each WaveInEvent, any ideas?
Aug 11 at 1:32 PM
Edited Aug 11 at 1:46 PM
The GetPosition is only implemented for Output correct?
So it's no use when recording, except if it's the same device perhaps.

Also this error persists: https://naudio.codeplex.com/discussions/550673
Aug 30 at 11:18 PM
Okay it worked in the latest source as you suggested.

Do you have any idea how to compare the DevicePosition to the PC QPC?
trying to figure that out, as DevicePosition is supposed to be the SoundCards QPC.