IAudioClock2 interface (audioclient.h)
The IAudioClock2 interface is used to get the current device position.
To get a reference to the IAudioClock2 interface, the application must call IAudioClock::QueryInterface to request the interface pointer from the stream object's IAudioClock interface.
The client obtains a reference to the IAudioClock interface of a stream object by calling the IAudioClient::GetService method with parameter riid set to REFIID IID_IAudioClock.
When releasing an IAudioClock2 interface instance, the client must call the interface's Release method from the same thread as the call to IAudioClient::GetService that created the object.
Inheritance
The IAudioClock2 interface inherits from the IUnknown interface. IAudioClock2 also has these types of members:
Methods
The IAudioClock2 interface has these methods.
IAudioClock2::GetDevicePosition The GetDevicePosition method gets the current device position, in frames, directly from the hardware. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | audioclient.h |