| 55 | } |
| 56 | |
| 57 | int16_t * AudioRecordQueue::readBuffer(void) |
| 58 | { |
| 59 | uint32_t t; |
| 60 | |
| 61 | if (userblock) return NULL; |
| 62 | t = tail; |
| 63 | if (t == head) return NULL; |
| 64 | if (++t >= 53) t = 0; |
| 65 | userblock = queue[t]; |
| 66 | tail = t; |
| 67 | return userblock->data; |
| 68 | } |
| 69 | |
| 70 | void AudioRecordQueue::freeBuffer(void) |
| 71 | { |
nothing calls this directly
no outgoing calls
no test coverage detected