BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_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:

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static int BASS_GetConfig(
	BASSConfig 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.


BASS_CONFIG_3DALGORITHMThe 3D algorithm for software mixed 3D channels.
BASS_CONFIG_ASYNCFILE_BUFFERAsynchronous file reading buffer length.
BASS_CONFIG_BUFFERPlayback buffer length.
BASS_CONFIG_CURVE_VOLVolume translation curve.
BASS_CONFIG_CURVE_PANPanning translation curve.
BASS_CONFIG_DEV_BUFFEROutput device buffer length (Linux and Windows CE only).
BASS_CONFIG_DEV_DEFAULTInclude a "Default" entry in the output device list?
BASS_CONFIG_FLOATDSPPass 32-bit floating-point sample data to all DSP functions?
BASS_CONFIG_GVOL_MUSICGlobal music volume.
BASS_CONFIG_GVOL_SAMPLEGlobal sample volume.
BASS_CONFIG_GVOL_STREAMGlobal stream volume.
BASS_CONFIG_MUSIC_VIRTUALThe maximum number of virtual channels to use in the rendering of IT files.
BASS_CONFIG_MP3_CODECThe MP3 decoder to use... 0 = BASS, 1 = Windows.
BASS_CONFIG_OGG_PRESCANPre-scan chained OGG files?
BASS_CONFIG_NET_PLAYLISTProcess URLs in PLS and M3U playlists?
BASS_CONFIG_NET_BUFFERInternet download buffer length.
BASS_CONFIG_NET_PROXYProxy server settings.
BASS_CONFIG_NET_PASSIVEUse passive mode in FTP connections?
BASS_CONFIG_NET_PREBUFAmount to pre-buffer when opening internet streams.
BASS_CONFIG_NET_TIMEOUTTime to wait for a server to respond to a connection request.
BASS_CONFIG_NET_READTIMEOUTTime to wait for a server to deliver more data.
BASS_CONFIG_PAUSE_NOPLAYPrevent channels being played when the output is paused?
BASS_CONFIG_REC_BUFFERRecording buffer length.
BASS_CONFIG_SRCDefault sample rate conversion quality.
BASS_CONFIG_SRC_SAMPLEDefault sample rate conversion quality for samples.
BASS_CONFIG_UPDATEPERIODUpdate period of playback buffers.
BASS_CONFIG_UPDATETHREADSNumber of update threads.
BASS_CONFIG_VERIFYFile format verification length.
BASS_CONFIG_VISTA_SPEAKERSEnable speaker assignment with panning/balance control on Windows Vista and newer?
Other config options may be supported by Add-Ons, see the documentation.

ERROR CODEDescription
BASS_ERROR_ILLPARAMoption is invalid.


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