BASS_CONFIG_HANDLES config option
Number of existing HMUSIC / HRECORD / HSAMPLE / HSTREAM handles.
BASS_GetConfig(
BASS_CONFIG_HANDLES
);
Remarks
This is a read-only config option that gives the total number of HMUSIC / HRECORD / HSAMPLE / HSTREAM handles that currently exist, which can be useful for detecting leaks, ie. unfreed handles. Some add-ons may create their own handles for internal usage, so a single stream can increase (and decrease when freed) the total number of handles by more than one.
See also
BASS_GetConfig