From 866ef62e6c056cc6896eabc6f4162632937aaf41 Mon Sep 17 00:00:00 2001 From: "Inspector Gadget [BOT]" Date: Sun, 15 Dec 2024 13:36:47 +0000 Subject: [PATCH] Update module github.com/gopxl/beep to v2 --- go.mod | 2 -- go.sum | 3 +-- internal/playback/controller.go | 8 ++++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index e70b466..ea85578 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/delucks/go-subsonic v0.0.0-20240806025900-2a743ec36238 github.com/gdamore/tcell/v2 v2.7.4 github.com/godbus/dbus/v5 v5.1.0 - github.com/gopxl/beep v1.4.1 github.com/gopxl/beep/v2 v2.1.0 github.com/quarckster/go-mpris-server v1.0.3 github.com/rivo/tview v0.0.0-20241103174730-c76f7879f592 @@ -23,7 +22,6 @@ require ( github.com/mattn/go-runewidth v0.0.15 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect - github.com/stretchr/testify v1.9.0 // indirect golang.org/x/sys v0.18.0 // indirect golang.org/x/term v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect diff --git a/go.sum b/go.sum index e43d113..1f79715 100644 --- a/go.sum +++ b/go.sum @@ -15,8 +15,7 @@ github.com/gdamore/tcell/v2 v2.7.4 h1:sg6/UnTM9jGpZU+oFYAsDahfchWAFW8Xx2yFinNSAY github.com/gdamore/tcell/v2 v2.7.4/go.mod h1:dSXtXTSK0VsW1biw65DZLZ2NKr7j0qP/0J7ONmsraWg= github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gopxl/beep v1.4.1 h1:WqNs9RsDAhG9M3khMyc1FaVY50dTdxG/6S6a3qsUHqE= -github.com/gopxl/beep v1.4.1/go.mod h1:A1dmiUkuY8kxsvcNJNUBIEcchmiP6eUyCHSxpXl0YO0= +github.com/gopxl/beep/v2 v2.1.0 h1:Jv95iHw3aNWoAa/J78YyXvOvMHH2ZGeAYD5ug8tVt8c= github.com/gopxl/beep/v2 v2.1.0/go.mod h1:sQvj2oSsu8fmmDWH3t0DzIe0OZzTW6/TJEHW4Ku+22o= github.com/hajimehoshi/go-mp3 v0.3.4 h1:NUP7pBYH8OguP4diaTZ9wJbUbk3tC0KlfzsEpWmYj68= github.com/hajimehoshi/go-mp3 v0.3.4/go.mod h1:fRtZraRFcWb0pu7ok0LqyFhCUrPeMsGRSVop0eemFmo= diff --git a/internal/playback/controller.go b/internal/playback/controller.go index 69cb8b8..69c9102 100644 --- a/internal/playback/controller.go +++ b/internal/playback/controller.go @@ -6,9 +6,9 @@ import ( "git.dayanhub.com/sagi/subsonic-tui/internal/client" "github.com/delucks/go-subsonic" - "github.com/gopxl/beep" - "github.com/gopxl/beep/mp3" - "github.com/gopxl/beep/speaker" + "github.com/gopxl/beep/v2" + "github.com/gopxl/beep/v2/mp3" + "github.com/gopxl/beep/v2/speaker" ) type PlaybackState int @@ -60,7 +60,7 @@ func (c *Controller) Play(song *subsonic.Child) { } r, err := c.client.Stream(song.ID) if err != nil { - //TODO: Log error + //TODO: Log error c.Stop() return } -- 2.45.2