Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:41 +01:00
1 parent 0295eb1ad2
commit b8a493b93d
138 files changed
+1898 -57607

No files matched your search

+8 -8
View File
@@ -8,10 +8,10 @@ import (
"strings"
"time"
"git.maze.io/go/bragi/config"
"git.maze.io/go/bragi/player"
"git.maze.io/go/bragi/player/mpd"
"git.maze.io/go/bragi/util"
"go.maze.io/harmon/config"
"go.maze.io/harmon/internal/util"
"go.maze.io/harmon/player"
"go.maze.io/harmon/player/mpd"
)
const (
@@ -27,7 +27,7 @@ type Player struct {
isLocal bool
}
func New(config *config.Player) (player.Player, error) {
func New(config config.Player) (player.Player, error) {
addr := util.MakeAddr(config.Host, DefaultAddr)
return &Player{
@@ -35,9 +35,9 @@ func New(config *config.Player) (player.Player, error) {
}, nil
}
func (p *Player) Name() string {
return "moOde"
}
func (p *Player) Halt() error { return p.mpd.Halt() }
func (Player) Type() string { return "moode" }
func (p *Player) Name() string { return "moOde" }
func (p *Player) Events() (<-chan player.Event, error) {
return nil, nil
+2 -1
View File
@@ -3,8 +3,9 @@ package moode
import (
"testing"
"git.maze.io/go/bragi/player"
"periph.io/x/conn/v3/physic"
"go.maze.io/harmon/player"
)
func TestParseAudioFormat(t *testing.T) {