rohank05 / lavalink-filter-plugin

A lavalink plugin for audio filters
Apache License 2.0
6 stars 1 forks source link

Support for Lavalink 4 #2

Open zoli456 opened 1 year ago

zoli456 commented 1 year ago

https://github.com/lavalink-devs/Lavalink/blob/master/CHANGELOG.md They recently released the new Lavalink version and this plugin will need some changes to work with the new version.

rohank05 commented 1 year ago

I will look into it. Probably tomorrow

Tomato6966 commented 1 year ago

It works on lavalink v4. however the reverb filter is still missing, tho it's in the lavadsp extension rohank05 made.

Tomato6966 commented 1 year ago

Update: since beta.2 it does not work on lavalink v4

To make it support lavalink now takes following:

inside filters, there is a pluginFilters, which takes a Record as key the plugin name, and as value an record containing all your data. For more information, see here https://github.com/lavalink-devs/Lavalink/blob/master/IMPLEMENTATION.md#plugin-filter

Example how to send it:

payload={"filters":{"pluginFilters":{"lavalink-filter-plugin":{"echo":{"decay":0.8,"delay":4},"reverb":{"delays":[0.037,0.042,0.048,0.053],"gains":[0.84,0.83,0.82,0.81]}}},"equalizer":[]}}

idk how you need to set it up but yea

Tomato6966 commented 1 year ago

@rohank05