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

Method Pause

common/audio.go:233–238  ·  view source on GitHub ↗

Pause pauses the AudioSystem's loop. Call Restart to continue playing audio.

()

Source from the content-addressed store, hash-verified

231
232// Pause pauses the AudioSystem's loop. Call Restart to continue playing audio.
233func (a *AudioSystem) Pause() {
234 if len(a.pauseCh) > 0 { // so it doesn't block
235 return
236 }
237 a.pauseCh <- struct{}{}
238}
239
240// Restart restarts the AudioSystem's loop when it's paused.
241func (a *AudioSystem) Restart() {

Callers 3

readMethod · 0.45
TestAudioPlayerPlayFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestAudioPlayerPlayFunction · 0.36