diff --git a/audio/audio.go b/audio/audio.go index 122fd2289..9ac9048fd 100644 --- a/audio/audio.go +++ b/audio/audio.go @@ -350,6 +350,11 @@ func BytesReadSeekCloser(b []byte) ReadSeekCloser { } // Player is an audio player which has one stream. +// +// Even when all references to a Player object is gone, +// the object is not GCed until the player finishes playing. +// This means that if a Player plays an infinite stream, +// the object is never GCed unless Close is called. type Player struct { p *playerImpl }