Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets additional services from the ISpatialAudioObjectRenderStream.
Syntax
HRESULT GetService(
[in] REFIID riid,
[out] void **service
);
Parameters
[in] riid
The interface ID for the requested service. The client should set this parameter to one of the following REFIID values:
IID_IAudioClock
IID_IAudioClock2
IID_IAudioStreamVolume
[out] service
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 code | Description |
---|---|
|
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. |
Remarks
The GetService method supports the following service interfaces:
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | spatialaudioclient.h |