diff --git a/audio/queue/queue.go b/audio/queue/queue.go index 405e792..80ac6c4 100644 --- a/audio/queue/queue.go +++ b/audio/queue/queue.go @@ -232,7 +232,7 @@ func (q *Queue) Remove(identifier Identifier) bool { e.Source.Unlock() go audio.NewNullSink().Process(e.Source) - slices.Delete(q.queue, i, i+1) + q.queue = slices.Delete(q.queue, i, i+1) entry = e } }()