MCPcopy
hub / github.com/ebitengine/oto / returnBufferToPool

Method returnBufferToPool

internal/mux/mux.go:574–580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572}
573
574func (p *playerImpl) returnBufferToPool() {
575 if p.buf != nil {
576 buf := p.buf
577 theBufPool.Put(&buf)
578 p.buf = nil
579 }
580}
581
582// TODO: The term 'buffer' is confusing. Name each buffer with good terms.
583

Callers 3

playImplMethod · 0.95
closeImplMethod · 0.95
readBufferAndAddMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected