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.
The SetBuffer method initializes the endpoint and creates a buffer based on the format of the endpoint into which the audio data is streamed.
Syntax
HRESULT SetBuffer(
[in] HNSTIME MaxPeriod,
[in] UINT32 u32LatencyCoefficient
);
Parameters
[in] MaxPeriod
The processing time, in 100-nanosecond units, of the audio endpoint.
[in] u32LatencyCoefficient
The latency coefficient for the audio device. This value is used to calculate the latency. Latency = u32LatencyCoefficient * MaxPeriod.
Return value
If the method succeeds, it returns S_OK.
If it fails, possible return codes include, but are not limited to, the following.
Remarks
The Remote Desktop Services AudioEndpoint API is for use in Remote Desktop scenarios; it is not for client applications.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | audioengineendpoint.h |