mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-25 13:48:49 +08:00
fix #34
This commit is contained in:
parent
a267f0f3e0
commit
517809a043
4
start.go
4
start.go
@ -342,7 +342,7 @@ func start(application *tview.Application, args Args) {
|
||||
}()
|
||||
})
|
||||
|
||||
gomu.player.SetSongFinish(func(_ player.Audio) {
|
||||
gomu.player.SetSongFinish(func(currAudio player.Audio) {
|
||||
audio, err := gomu.queue.dequeue()
|
||||
if err != nil {
|
||||
gomu.playingBar.setDefault()
|
||||
@ -355,7 +355,7 @@ func start(application *tview.Application, args Args) {
|
||||
}
|
||||
|
||||
if gomu.queue.isLoop {
|
||||
_, err = gomu.queue.enqueue(audio)
|
||||
_, err = gomu.queue.enqueue(currAudio.(*AudioFile))
|
||||
if err != nil {
|
||||
logError(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user