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

Struct Player

common/audio_player.go:20–41  ·  view source on GitHub ↗

Player holds the underlying audio data and plays/pauses/stops/rewinds/seeks it.

Source from the content-addressed store, hash-verified

18
19// Player holds the underlying audio data and plays/pauses/stops/rewinds/seeks it.
20type Player struct {
21 isPlaying bool
22 Repeat bool
23
24 src convert.ReadSeekCloser
25 url string
26 srcEOF bool
27 sampleRate int
28
29 buf []byte
30 pos int64
31 volume float64
32
33 closeCh chan struct{}
34 closedCh chan struct{}
35 readLoopEndedCh chan struct{}
36 seekCh chan seekArgs
37 seekedCh chan error
38 proceedCh chan []int16
39 proceededCh chan proceededValues
40 syncCh chan func()
41}
42
43type seekArgs struct {
44 offset int64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected