IAudioSource::DataAvailable

HRESULT DataAvailable(DWORD *pdwBytes, BOOL *pfEOF);

Retrieves the number of bytes of data in the internal buffer of an audio-source object.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY
AUDERR_NEEDWAVEFORMAT

pdwBytes

[out] Address of a variable that receives the number of bytes of data in the internal buffer.

pfEOF

[out] Address of a variable that receives TRUE if an end-of-file character has been reached and no more data can be received from the audio source or FALSE if some data might remain. An audio device always returns FALSE.