BASS_CONFIG_SAMPLE_ONEHANDLE config option
Use the same handle for a sample and its single playback channel?
BASS_SetConfig(
BASS_CONFIG_SAMPLE_ONEHANDLE,
BOOL onehandle
);
Parameters
onehandle | Use the same handle for a sample and its single channel?
|
Remarks
When a sample has a channel limit of only one (max = 1 with BASS_SampleLoad or BASS_SampleCreate), the same handle may be used for the sample (HSAMPLE) and its playback channel (HCHANNEL), depending on this config setting. When the same handle is used, BASS_SampleGetChannel still needs to be called to create the playback channel.
This config option is enabled by default. Changes take effect from the next BASS_SampleGetChannel call.
See also
BASS_GetConfig, BASS_SetConfig, BASS_SampleGetChannel