IAudioClockAdjustment interface

The IAudioClockAdjustment interface is used to adjust the sample rate of a stream.

The client obtains a reference to the IAudioClockAdjustment interface of a stream object by calling the IAudioClient::GetService method with parameter riid set to REFIID IID_IAudioClockAdjustment. Adjusting the sample rate is not supported for exclusive mode streams.

The IAudioClockAdjustment interface must be obtained from an audio client that is initialized with both the AUDCLNT_STREAMFLAGS_RATEADJUST flag and the share mode set to AUDCLNT_SHAREMODE_SHARED. If Initialize is called in an exclusive mode with the AUDCLNT_STREAMFLAGS_RATEADJUST flag, Initialize fails with the AUDCLNT_E_UNSUPPORTED_FORMAT error code.

When releasing an IAudioClockAdjustment 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.


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


The IAudioClockAdjustment interface has these methods.

Method Description
IAudioClockAdjustment::SetSampleRate The SetSampleRate method sets the sample rate of a stream.


Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header audioclient.h

See also


Core Audio Interfaces