Add rAudio detection and MPD playback support
This commit is contained in:
6 files changed
+96
No files matched your search
@@ -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())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user