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

Method loop

driver_darwin.go:173–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171}
172
173func (c *context) loop() {
174 buf32 := make([]float32, c.oneBufferSizeInBytes/4)
175 for {
176 if !c.wait() {
177 return
178 }
179 c.appendBuffer(buf32)
180 }
181}
182
183func (c *context) appendBuffer(buf32 []float32) {
184 c.cond.L.Lock()

Callers 1

newContextFunction · 0.95

Calls 2

waitMethod · 0.95
appendBufferMethod · 0.95

Tested by

no test coverage detected