MCPcopy
hub / github.com/EngoEngine/engo / Rewind

Method Rewind

common/audio_player.go:246–248  ·  view source on GitHub ↗

Rewind rewinds the current position to the start. Rewind returns error when seeking the source stream returns error.

()

Source from the content-addressed store, hash-verified

244//
245// Rewind returns error when seeking the source stream returns error.
246func (p *Player) Rewind() error {
247 return p.Seek(0)
248}
249
250// Seek seeks the position with the given offset.
251//

Callers 3

readMethod · 0.80
TestAudioPlayerSeekFunction · 0.80
UpdateMethod · 0.80

Calls 1

SeekMethod · 0.95

Tested by 1

TestAudioPlayerSeekFunction · 0.64