Add set eq
Release / build (amd64, darwin, macos-latest) (push) Has been cancelled
Release / build (amd64, linux, ubuntu-latest) (push) Has been cancelled
Release / build (amd64, windows, windows-latest) (push) Has been cancelled
Release / build (arm64, darwin, macos-latest) (push) Has been cancelled
Release / build (arm64, linux, ubuntu-latest) (push) Has been cancelled
Release / release (push) Has been cancelled
Release / update-homebrew (push) Has been cancelled

This commit is contained in:
Bjarne Øverli
2026-03-29 23:41:00 +02:00
parent aadf6141e1
commit fde4b8b8a5
7 changed files with 96 additions and 5 deletions
+8
View File
@@ -85,6 +85,14 @@ func registerControlAPI(L *lua.LState, cliamp *lua.LTable, ctrl *ControlProvider
return 0
}))
L.SetField(tbl, "set_eq_preset", L.NewFunction(func(L *lua.LState) int {
if !guard("set_eq_preset") {
return 0
}
ctrl.SetEQPreset(L.CheckString(1))
return 0
}))
L.SetField(tbl, "set_eq_band", L.NewFunction(func(L *lua.LState) int {
if !guard("set_eq_band") {
return 0
+4 -3
View File
@@ -63,9 +63,10 @@ type ControlProvider struct {
ToggleMono func()
TogglePause func()
Stop func()
Seek func(secs float64)
Next func() // injected via prog.Send
Prev func() // injected via prog.Send
Seek func(secs float64)
SetEQPreset func(name string) // injected via prog.Send
Next func() // injected via prog.Send
Prev func() // injected via prog.Send
}
// Manager owns all loaded plugins and dispatches events to them.