MCPcopy Create free account
hub / github.com/PaulStoffregen/Audio / readBuffer

Method readBuffer

record_queue.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57int16_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
70void AudioRecordQueue::freeBuffer(void)
71{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected