IRDPSRAPIAudioStream::GetBuffer method (rdpencomapi.h)

Gets audio data from the buffer.
This method locks an internal buffer and returns a pointer to a specific location in that buffer. It does not allocate a copy of the buffer for the caller. To release the buffer after the last call to this method, call the FreeBuffer method.

Syntax

HRESULT GetBuffer(
  [out] BYTE   **ppbData,
  [out] UINT32 *pcbData,
  [out] UINT64 *pTimestamp
);

Parameters

[out] ppbData

A pointer to the current location in the buffer.

[out] pcbData

The size in bytes of the available data in the buffer.

[out] pTimestamp

The time-based location of the location pointer.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See also

FreeBuffer

IRDPSRAPIAudioStream