mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
audio: Add comments about GC (#746)
This commit is contained in:
parent
241ccc307f
commit
1760070130
@ -350,6 +350,11 @@ func BytesReadSeekCloser(b []byte) ReadSeekCloser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Player is an audio player which has one stream.
|
// 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 {
|
type Player struct {
|
||||||
p *playerImpl
|
p *playerImpl
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user