()
| 171 | } |
| 172 | |
| 173 | func (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 | |
| 183 | func (c *context) appendBuffer(buf32 []float32) { |
| 184 | c.cond.L.Lock() |
no test coverage detected