Skip to content

5.4.0

Compare
Choose a tag to compare
@twlite twlite released this 12 Jan 16:10
· 653 commits to master since this release

What's Changed

New Equalizer API

Equalizer can be accessed with queue.connection.equalizer which may be EqualizerStream instance or null. Just like inline volume, equalizer can be disabled by passing disableEqualizer: true to createQueue.

if (!queue.isEqualizerEnabled()) return message.reply("Equalizer is not available");

const bands = [
    { band: 0, gain: 0.25 },
    { band: 1, gain: 0.25 },
    { band: 2, gain: 0.25 },
];

// apply config
queue.setEqualizer(bands);

// toggle equalizer on/off
queue.toggleEqualizer();
queue.enableEqualizer();
queue.disableEqualizer();

// get equalizer state
queue.getEqualizer();

// Pass nothing or pass an empty array to reset equalizer
queue.setEqualizer();
queue.setEqualizer([]);

// set specific band
queue.setEqualizerBand(band, gain);

// get specific band
queue.getEqualizerBand(band);

Note: Equalizer runs before volume transformer and after ffmpeg and thus it may change ffmpeg filters behavior.

New Contributors

Full Changelog: v5.3.2...v5.4.0