BASS.NET API for the Un4seen BASS Audio Library

BassBASS_SetConfigString Method

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

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

public static bool BASS_SetConfigString(
	BASSConfig option,
	string newvalue
)

Parameters

option
Type: Un4seen.BassBASSConfig
The option to set the value of... one of the following (BASSConfig; the BASS_UNICODE flag is added automatically).
newvalue
Type: SystemString
The new option value (as a unicode string). 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

Bass.BASS_SetConfigPtr(BASSConfig.BASS_CONFIG_NET_AGENT, "radio42");
If you need to change the BASS_CONFIG_NET_PROXY or BASS_CONFIG_NET_AGENT option, you will need to call BASS_SetConfig(BASSConfig, Int32) again!
See Also

Reference