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.

Members

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

Methods

The IAudioClockAdjustment interface has these methods.

MethodDescription
SetSampleRate

Sets the sample rate of a stream.

 

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
AUDCLNT_STREAMFLAGS_XXX Constants

 

 

Show: