ISpatialAudioRenderStreamForHrtf::GetService method

Gets additional services from the ISpatialAudioRenderStreamForHrtf.

Syntax


HRESULT GetService(
  [in]  REFIID riid,
  [out] REFIID **service
);

Parameters

riid [in]

The interface ID for the requested service. The client should set this parameter to one of the following REFIID values:

IID_IAudioClock

IID_IAudioClock2

service [out]

Pointer to a pointer variable into which the method writes the address of an instance of the requested interface. Through this method, the caller obtains a counted reference to the interface. The caller is responsible for releasing the interface, when it is no longer needed, by calling the interface's Release method. If the GetService call fails, *ppv is NULL.

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return codeDescription
E_POINTER

Parameter ppv is NULL.

AUDCLNT_E_DEVICE_INVALIDATED

The audio endpoint device has been unplugged, or the audio hardware or associated hardware resources have been reconfigured, disabled, removed, or otherwise made unavailable for use.

 

Remarks

The GetService method supports the following service interfaces:

Requirements

Header

Spatialaudiohrtf.h

See also

ISpatialAudioRenderStreamForHrtf

 

 

Show: