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

Method clear

record_queue.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void AudioRecordQueue::clear(void)
42{
43 uint32_t t;
44
45 if (userblock) {
46 release(userblock);
47 userblock = NULL;
48 }
49 t = tail;
50 while (t != head) {
51 if (++t >= 53) t = 0;
52 release(queue[t]);
53 }
54 tail = t;
55}
56
57int16_t * AudioRecordQueue::readBuffer(void)
58{

Callers 1

updateSelectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected