Add rAudio detection and MPD playback support

This commit is contained in:
maze committed 2026-10-29 17:30:04 +01:00
1 parent 9986c2447b
commit b82ad75ec4
6 files changed
+96

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package raudio
import (
"github.com/BeatGlow/beatglow/config"
"github.com/BeatGlow/beatglow/player"
"testing"
)
func TestRegisteredPlayer(t *testing.T) {
p, err := player.New(&config.Player{Type: "raudio", Host: "localhost:6601"})
if err != nil {
t.Fatal(err)
}
if p.Name() != "rAudio" || p.String() != "rAudio@mpd@localhost:6601" {
t.Fatalf("unexpected player: %s (%s)", p.Name(), p.String())
}
}