IAudioClock2 interface

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.

Members

The IAudioClock2 interface inherits from the IUnknown interface. IAudioClock2 also has these types of members:

Methods

The IAudioClock2 interface has these methods.

MethodDescription
GetDevicePosition

Gets the current device position, in frames, directly from the hardware.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Audioclient.h

See also

Core Audio Interfaces
IAudioClient::GetService
IAudioClock

 

 

Show: