The sample rate conversion quality of a channel.
BASS_ChannelSetAttribute( DWORD handle, BASS_ATTRIB_SRC, float quality );
|The channel handle.
|The sample rate conversion quality... 0 = linear interpolation, 1 = 8 point sinc interpolation, 2 = 16 point sinc interpolation, 3 = 32 point sinc interpolation, 4 = 64 point sinc interpolation. Other values are also accepted but will be interpreted as 0 or 4, depending on whether they are lower or higher.
Whenever possible, a channel's sample rate should match the output device's rate to avoid the need for any sample rate conversion. The device's sample rate could be used in BASS_StreamCreate or BASS_MusicLoad or MIDI stream creation calls, for example.
The sample rate conversion occurs (when required) during playback, after the sample data has left the channel's playback buffer, so it does not affect the data delivered by BASS_ChannelGetData. Although this attribute has no direct effect on decoding channels, it is still available so that it can be used by the BASSmix add-on and anything else that wants to use it.
This attribute can be set at any time, and changes take immediate effect. A channel's initial setting is determined by the BASS_CONFIG_SRC config option, or BASS_CONFIG_SRC_SAMPLE in the case of a sample channel.