Retrieves the immediate sample data (or an FFT representation of it) of a mixer source channel.
DWORD BASS_Mixer_ChannelGetData( DWORD handle, void *buffer, DWORD length );
|handle||The channel handle.|
|buffer||Pointer to a buffer to receive the data.|
|length||Number of bytes wanted, and/or the BASS_ChannelGetData flags.|
|BASS_ERROR_HANDLE||handle is not plugged into a mixer.|
|BASS_ERROR_NOTAVAIL||The channel does not have buffering enabled.|
If the mixer is being played by BASS, the returned data will be in sync with what is currently being heard from the mixer. If another output system is being used, the BASS_ATTRIB_MIXER_LATENCY option can be used to tell the mixer what the latency is so that it can be taken account of, otherwise the channel's most recent data will be returned. The BASS_CONFIG_MIXER_BUFFER config option determines how far back data will be available from, so it should be set high enough to cover any latency.