IRDPSRAPIAudioStream::GetBuffer method
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, size_is(, *pcbData)] BYTE **ppbData, [out] UINT32 *pcbData, [out] UINT64 *pTimestamp );
Parameters
- ppbData [out]
-
A pointer to the current location in the buffer.
- pcbData [out]
-
The size in bytes of the available data in the buffer.
- pTimestamp [out]
-
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
|
Minimum supported client |
Windows 8.1 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
Type library |
|
|
DLL |
|
See also