class

Emerald::VLC::Equalizer

Inherits Reference < Object

10-band audio graphic equalizer and preset manager.

Constants

BAND_FREQUENCIES = [31.25_f32, 62.5_f32, 125.0_f32, 250.0_f32, 500.0_f32, 1000.0_f32, 2000.0_f32, 4000.0_f32, 8000.0_f32, 16000.0_f32]

10 standard ISO audio equalizer frequencies (in Hz)

PRESETS = ["Flat", "Classical", "Club", "Dance", "FullBass", "FullBassTreble", "FullTreble", "Headphones", "LargeHall", "Live", "Party", "Pop", "Reggae", "Rock", "Ska", "Soft", "SoftRock", "Techno", "Vocal"]

18 standard LibVLC equalizer presets

Constructors

from_preset(preset_name : String) : Equalizer

Creates an equalizer initialized with a standard preset name

Source
from_preset_index(index : UInt32) : Equalizer

Creates an equalizer initialized with a preset index (0..18)

Source
new(handle : LibVLC::Equalizer | Nil = nil)
Source

Instance methods

amp(band_index : UInt32) : Float32

Gets amplification in dB for band index (-20.0 dB .. +20.0 dB)

Source
band_count

Number of frequency bands supported (typically 10)

Source
band_frequency(band_index : UInt32) : Float32

Gets center frequency for band index in Hz

Source
finalize
Source
handle
Source
preamp

Gets master pre-amplification gain in dB

Source
preamp=(preamp_db : Float32) : Float32

Sets master pre-amplification gain in dB (-20.0 dB .. +20.0 dB)

Source
set_amp(band_index : UInt32, amp_db : Float32) : Nil

Sets amplification in dB for band index (-20.0 dB .. +20.0 dB)

Source