The SetBuffer method initializes the endpoint and creates a buffer based on the format of the endpoint into which the audio data is streamed.
HRESULT SetBuffer( HNSTIME MaxPeriod, UINT32 u32LatencyCoefficient );
The processing time, in 100-nanosecond units, of the audio endpoint.
The latency coefficient for the audio device. This value is used to calculate the latency. Latency = u32LatencyCoefficient * MaxPeriod.
If the method succeeds, it returns S_OK.
If it fails, possible return codes include, but are not limited to, the following.
The Remote Desktop Services AudioEndpoint API is for use in Remote Desktop scenarios; it is not for client applications.
|Windows version||Windows 7 Windows Server 2008 R2|