feat: add PipeWire muter functionality and service files for Sendspin audio player

This commit is contained in:
2026-06-14 12:17:47 +02:00
parent 6e22834c5c
commit 1054d4b9d0
12 changed files with 410 additions and 3 deletions

View File

@@ -56,7 +56,8 @@ func (o *Output) Open(sampleRate, channels, bitDepth int) error {
func (o *Output) startUnlocked() error {
nameJSON, _ := json.Marshal(o.nodeName)
props := fmt.Sprintf(`{"node.name":%s}`, nameJSON)
latency := fmt.Sprintf("960/%d", o.sampleRate)
props := fmt.Sprintf(`{"node.name":%s,"node.latency":"%s"}`, nameJSON, latency)
args := []string{
"--playback",
@@ -64,6 +65,7 @@ func (o *Output) startUnlocked() error {
"--format", "s32",
"--rate", strconv.Itoa(o.sampleRate),
"--channels", strconv.Itoa(o.channels),
"--latency", latency,
"--properties", props,
}
if o.target != "" {