BASS

BASS_ATTRIB_MUSIC_ACTIVE attribute


The number of active channels in a MOD music.

BASS_ChannelGetAttribute(
    HMUSIC handle,
    BASS_ATTRIB_MUSIC_ACTIVE,
    float *active
);

Parameters

handleThe MOD music handle.
activeThe number of channels.

Remarks

This attribute gives the number of channels (including virtual) that are currently active in the decoder, which may not match what is being heard during playback due to buffering. To reduce the time difference, use the BASS_CONFIG_BUFFER config option to reduce the buffer length.

This attribute is read-only, so cannot be modified via BASS_ChannelSetAttribute.

See also

BASS_ChannelGetAttribute, BASS_CONFIG_MUSIC_VIRTUAL