public class AudioClock : ComObject
The AudioClock class enables a client to monitor a stream's data rate and the current position in the stream.
AudioClock(IntPtr ptr)
Initializes a new instance of the AudioClock class.
public void AudioClock(IntPtr ptr)
Parameters
ptr
IntPtrThe native pointer of the IAudioClock COM Object.
FromAudioClient(AudioClient audioClient)
Creates a new AudioCaptureClient by calling the GetService method of the specified audioClient.
GetCharacteristicsNative(Int32& characteristics)
The GetCharacteristics method is reserved for future use.
public Int32 GetCharacteristicsNative(Int32& characteristics)
Parameters
characteristics
Int32&Value that indicates the characteristics of the audio clock.
Returns
HREUSLT
GetFrequencyNative(Int64& pu64Frequency)
The GetFrequency method gets the device frequency.
public Int32 GetFrequencyNative(Int64& pu64Frequency)
Parameters
pu64Frequency
Int64&The device frequency. For more information, see .
Returns
HRESULT
GetPositionNative(Int64& pu64Position, Int64& pu64QPCPosition)
The GetPosition method gets the current device position.
public Int32 GetPositionNative(Int64& pu64Position, Int64& pu64QPCPosition)
Parameters
pu64Position
Int64&The device position is the offset from the start of the stream to the current position in the stream. However, the units in which this offset is expressed are undefined—the device position value has meaning only in relation to the Pu64Frequency. For more information, see .
pu64QPCPosition
Int64&The value of the performance counter at the time that the audio endpoint device read the device position (pu64Position) in response to the GetPositionNative call. The method converts the counter value to 100-nanosecond time units before writing it to pu64QPCPosition.
Returns
HRESULT
Pu64Frequency
Gets the device frequency. For more information, see .
public Int64 Pu64Frequency { get; }
Pu64Position
Gets the device position.
public Int64 Pu64Position { get; }