mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
audio: Guarantee that (*Player).Current's returning value is increased monotonically
Closes #1501
This commit is contained in:
parent
83dc3966e7
commit
0de024229d
@ -398,6 +398,9 @@ func (p *Player) Pause() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Current returns the current position in time.
|
// Current returns the current position in time.
|
||||||
|
//
|
||||||
|
// As long as the player continues to play, Current's returning value is increased monotonically,
|
||||||
|
// even though the source stream loops and its position goes back.
|
||||||
func (p *Player) Current() time.Duration {
|
func (p *Player) Current() time.Duration {
|
||||||
return p.p.Current()
|
return p.p.Current()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user