Table of Contents

Class Equalizer10Settings

Namespace
VisioForge.Core.Types.X.AudioEffects
Assembly
VisioForge.Core.dll

Settings for VisioForge.Core.MediaBlocks.AudioProcessing.Equalizer10Block. The block keeps its band gains in a private array reachable only through SetBand; this type is the serializable form of that state, so a pipeline document can carry a configured equalizer curve.

public class Equalizer10Settings : IMediaBlockSettings

Inheritance

Implements

Inherited Members

Fields

BandCount

The number of bands the 10-band equalizer exposes.

public const int BandCount = 10

Field Value

int

MaxGainDB

The highest gain a band accepts, in decibels.

public const double MaxGainDB = 12

Field Value

double

MinGainDB

The lowest gain a band accepts, in decibels.

public const double MinGainDB = -24

Field Value

double

Properties

Bands

Gets or sets the gain of every band, in decibels, from -24 dB to +12 dB; a value outside that range is clamped, because the underlying GStreamer property rejects it with a log line and keeps its old value. The array is always VisioForge.Core.Types.X.AudioEffects.Equalizer10Settings.BandCount entries long; a shorter array is padded with 0 dB and a longer one is truncated. Band centers: 29, 59, 119, 237, 474, 947, 1889, 3770, 7523 and 15011 Hz. Default is a flat response.

The getter returns a copy: writing through it - settings.Bands[3] = 6 - changes nothing. Assign a whole array to change the curve.

public double[] Bands { get; set; }

Property Value

double[]

Methods

CreateBlock()

Creates an VisioForge.Core.MediaBlocks.AudioProcessing.Equalizer10Block configured from these settings.

public MediaBlock CreateBlock()

Returns

MediaBlock

The configured block.