feat: add PipeWire muter functionality and service files for Sendspin audio player
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user