|  | 
| Previous | Next | 
The GetMaxOutputSampleSize method retrieves the maximum buffer size to be allocated for the output sample.
Syntax
HRESULT GetMaxOutputSampleSize(
  DWORD  dwOutput
  DWORD*  pcbMax
);
Parameters
dwOutput
[in] DWORD specifying the output sample.
pcbMax
[out] Pointer to the buffer size to be allocated.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
| Return code | Meaning | 
| ASF_E_INVALIDSTATE | No file has been opened for the sample. | 
| E_INVALIDARG | dwOutput specifies the wrong output or pcbMax is a NULL pointer. | 
See Also
| Previous | Next |