diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-07-26 21:37:24 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-07-26 21:37:24 +0200 |
| commit | 7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402 (patch) | |
| tree | 157a86cd3597d51b3fe72e73bd4e782bda07b2d0 /dummyBackend.go | |
| parent | 8171af55daad6ce9a5cdacf95527801e83f25c08 (diff) | |
| download | WRMS-7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402.tar.gz WRMS-7e15ad1d8af4ee27f6c1d31e7b1608e2d751c402.zip | |
intermediate commit
* use mpv to play songs
* fix CurrentSong being a pointer to a changing slot in the playlist array
* wire up play and pause
* continue playing after a song is finished
Diffstat (limited to 'dummyBackend.go')
| -rw-r--r-- | dummyBackend.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dummyBackend.go b/dummyBackend.go index d4461db..460dd5e 100644 --- a/dummyBackend.go +++ b/dummyBackend.go @@ -7,10 +7,7 @@ import ( type DummyBackend struct{} -func (dummy *DummyBackend) Play(song *Song) { -} - -func (dummy *DummyBackend) Pause() { +func (dummy *DummyBackend) Play(song *Song, player *Player) { } func (dummy *DummyBackend) Search(keyword string) []Song { |
