BASS.NET API for the Un4seen BASS Audio Library

BassBASS_ChannelIsSliding Method

BASS.NET API for the Un4seen BASS Audio Library
Checks if an attribute (or any attribute) of a sample, stream, or MOD music is sliding.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bass")]
public static bool BASS_ChannelIsSliding(
	int handle,
	BASSAttribute attrib
)

Parameters

handle
Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM or HRECORD.
attrib
Type: Un4seen.BassBASSAttribute
The attribute to check for sliding (one of the following, see BASSAttribute or 0 for any attribute):
BASS_ATTRIB_EAXMIXEAX wet/dry mix.
BASS_ATTRIB_FREQSample rate.
BASS_ATTRIB_PANPanning/balance position.
BASS_ATTRIB_VOLVolume level.
BASS_ATTRIB_MUSIC_AMPLIFYAmplification level. (HMUSIC)
BASS_ATTRIB_MUSIC_BPMBPM. (HMUSIC)
BASS_ATTRIB_MUSIC_PANSEPPan separation level. (HMUSIC)
BASS_ATTRIB_MUSIC_PSCALERPosition scaler. (HMUSIC)
BASS_ATTRIB_MUSIC_SPEEDSpeed. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_CHANA channel volume level. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_GLOBALGlobal volume level. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_INSTAn instrument/sample volume level. (HMUSIC)
Other attributes may be supported by add-ons, see the documentation

Return Value

Type: Boolean
If the attribute (or any) is sliding, then is returned, else is returned.
Examples

Wait until a volume slideing has finished:
while (Bass.BASS_ChannelIsSliding(channel, BASSAttribute.BASS_ATTRIB_VOL))
{
  Thread.Sleep(20); // wait 20ms
}
See Also

Reference