Files
go/pwsetup/pwsetup.go
Thomas Sindt 141cae646d pwsetup v0.1
2026-02-28 22:51:18 +01:00

32 lines
914 B
Go

// **********************************
// * pipewire buffersize and sample *
// * rate setup *
// * ------------------------------ *
// * (c) by THS 2026 *
// **********************************
package main
import (
"github.com/rivo/tview"
)
func main() {
app := tview.NewApplication()
form := tview.NewForm().
AddDropDown("SampleRate: ", []string{"44100", "48000", "96000"}, 0, func(option string, index int){
}).
AddDropDown("Buffer : ", []string{"64", "128", "256", "512", "1024", "2048"}, 0, nil).
AddTextView("Notes", "Set sample rate and buffersize for Pipewire", 40, 2, true, false).
AddButton("Set", nil).
AddButton("Quit", func() {
app.Stop()
})
form.SetBorder(true).SetTitle(" Pipewire setup ").SetTitleAlign(tview.AlignLeft)
if err := app.SetRoot(form, true).EnableMouse(true).EnablePaste(true).Run(); err != nil {
panic(err)
}
}