MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Destroy

Method Destroy

sound.go:167–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (sound *Sound) Destroy() {
168 sound.Pause()
169 speaker.Lock()
170
171 if stream, ok := sound.Stream.(beep.StreamSeekCloser); ok {
172 stream.Close()
173 }
174 sound.Stream = nil
175
176 speaker.Unlock()
177}
178
179// func (sound *Sound) TogglePause() {
180// if sound.Control.Paused {

Callers

nothing calls this directly

Calls 2

PauseMethod · 0.95
CloseMethod · 0.80

Tested by

no test coverage detected