BASS.NET API for the Un4seen BASS Audio LibraryBASS_BFX_COMPRESSOR2 MembersBASS.NET API for the Un4seen BASS Audio Library

The BASS_BFX_COMPRESSOR2 type exposes the following members.
Constructors

  NameDescription
Public methodBASS_BFX_COMPRESSOR2 
Default constructor
Public methodBASS_BFX_COMPRESSOR2(Single, Single, Single, Single, Single, BASSFXChan)
Constructor already setting the members.
Back to Top
Methods

  NameDescription
Public methodCalculate0dBGain
Calculates for the current threshold/ratio combination a gain value to roughly achieve a 0 dB peak line.
Public methodPreset_Default
Sets the instance members to a preset.
Public methodPreset_Hard
Sets the instance members to a preset.
Public methodPreset_Hard2
Sets the instance members to a preset.
Public methodPreset_HardCommercial
Sets the instance members to a preset.
Public methodPreset_Medium
Sets the instance members to a preset.
Public methodPreset_Soft
Sets the instance members to a preset.
Public methodPreset_Soft2
Sets the instance members to a preset.
Back to Top
Fields

  NameDescription
Public fieldfAttack
Time in ms before compression reaches its full value, in the range from 0.01 to 500. The default value is 20 ms.
Public fieldfGain
Output gain in dB of signal after compression, in the range from -60 to 60. The default value is 5 dB.
Public fieldfRatio
Compression ratio, in the range from 1 to 100. The default value is 3, which means 3:1 compression.
Public fieldfRelease
Time (speed) in ms at which compression is stopped after input drops below fThreshold, in the range from 50 to 3000. The default value is 200 ms.
Public fieldfThreshold
Point in dB at which compression begins, in decibels, in the range from -60 to 0. The default value is -15 dB.
Public fieldlChannel
A BASSFXChan flag to define on which channels to apply the effect.

Default: -1 (BASS_BFX_CHANALL) - all channels.

Back to Top
See Also