pwsetup v0
This commit is contained in:
29
pwsetup/pwsetup.go
Normal file
29
pwsetup/pwsetup.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// **********************************
|
||||
// * 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, nil).
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user