BASS.NET API for the Un4seen BASS Audio Library

BassBASS_GetConfig Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the value of a config option.

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

[DllImportAttribute("bass")]
public static int BASS_GetConfig(
	BASSConfig option
)

Parameters

option
Type: Un4seen.BassBASSConfig
The option to get the value of... one of the following (BASSConfig).

Return Value

Type: Int32
If successful, the value of the requested config option is returned (as an int), else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Other config options may be supported by Add-Ons, see the documentation.

ERROR CODEDescription
BASS_ERROR_ILLPARAMoption is invalid.

Examples

Getting the current playback buffer length:
int bufLen = Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_BUFFER);
See Also

Reference