Retrieves the immediate sample data or an FFT representation of it.
DWORD BASS_WASAPI_GetData( void *buffer, DWORD length );
buffer | Pointer to a buffer to receive the data. |
length | Number of bytes wanted, and/or the BASS_ChannelGetData flags. |
BASS_ERROR_INIT | BASS_WASAPI_Init has not been successfully called. |
BASS_ERROR_NOTAVAIL | The BASS_WASAPI_BUFFER flag was not specified in the device's initialization. |
The BASS_WASAPI_BUFFER flag needs to have been specified in the device's initialization to enable the use of this function, except for with the BASS_DATA_AVAILABLE flag.
With an output device, the BASS_DATA_AVAILABLE return value may be larger than the buffer size indicated by BASS_WASAPI_GetInfo due to additional latency in the device/driver. When a mixer is feeding an output device, the BASS_DATA_AVAILABLE return value can be used with the BASS_ATTRIB_MIXER_LATENCY attribute and/or the BASS_Mixer_ChannelGetPositionEx function, to have the mixer account for the latency in its source position reporting and data/level retrieval.