ISpatialAudioObjectRenderStreamBase::GetService method (spatialaudioclient.h)
Gets additional services from the ISpatialAudioObjectRenderStream.
HRESULT GetService( REFIID riid, void **service );
The interface ID for the requested service. The client should set this parameter to one of the following REFIID values:
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.
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.
||Parameter ppv is NULL.|
||The ISpatialAudioClient associated with the spatial audio stream has been destroyed.|
||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.|
||An internal error has occurred.|
||The media associated with the spatial audio stream uses an unsupported format.|
The GetService method supports the following service interfaces: