BASS.NET API for the Un4seen BASS Audio Library

BassBASS_SetConfig Method (BASSConfig, Int32)

BASS.NET API for the Un4seen BASS Audio Library
Sets 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 bool BASS_SetConfig(
	BASSConfig option,
	int newvalue
)

Parameters

option
Type: Un4seen.BassBASSConfig
The option to set the value of... one of the following (BASSConfig).
newvalue
Type: SystemInt32
The new option value (as an int). See the option's documentation for details on the possible values.

Return Value

Type: Boolean
If successful, is returned, else 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

Setting the playback buffer to 100ms and the update period to 20ms:
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_BUFFER, 100);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_UPDATEPERIOD, 20);
See Also

Reference