BASS.NET API for the Un4seen BASS Audio Library

BassBASS_FXGetParameters Method (Int32, Object)

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the parameters of an effect.

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

public static bool BASS_FXGetParameters(
	int handle,
	Object par
)

Parameters

handle
Type: SystemInt32
The effect handle.
par
Type: SystemObject
An instance of an effect parameter structures which should be filled.

Additional effect parameter structures might be implemented by add-ons.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The structure used depends on the effect type.

For DX8 effects you might use: BASS_DX8_CHORUS, BASS_DX8_COMPRESSOR, BASS_DX8_DISTORTION, BASS_DX8_ECHO, BASS_DX8_FLANGER, BASS_DX8_GARGLE, BASS_DX8_I3DL2REVERB, BASS_DX8_PARAMEQ, BASS_DX8_REVERB.

For BASS_FX DSP effetcs you might use: BASS_BFX_VOLUME, BASS_BFX_ROTATE, BASS_BFX_PHASER, BASS_BFX_PEAKEQ, BASS_BFX_ECHO4, BASS_BFX_DISTORTION, BASS_BFX_DAMP, BASS_BFX_COMPRESSOR2, BASS_BFX_CHORUS, BASS_BFX_AUTOWAH, BASS_BFX_BQF, BASS_BFX_MIX, BASS_BFX_VOLUME_ENV.

Use BASS_ChannelSetFX(Int32, BASSFXType, Int32) to add an effect DSP to a channel at anay time and BASS_ChannelRemoveFX(Int32, Int32) to remove an effect from the channel.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

Examples

BASS_DX8_ECHO echo = new BASS_DX8_ECHO();
Bass.BASS_FXGetParameters(_fxEchoHandle, echo);
Console.WriteLine( "Panning={0}", echo.lPanDelay );
See Also

Reference