Added a new optional audio sink as a test

This commit is contained in:
Ryzerth
2021-07-17 19:43:44 +02:00
parent 45e4c21870
commit 63ae56cb9b
15 changed files with 534 additions and 35 deletions

View File

@ -264,6 +264,11 @@ namespace dsp {
generic_block<SampleFrameBuffer<T>>::tempStart();
}
void flush() {
std::unique_lock lck(bufMtx);
readCur = writeCur;
}
int run() {
// Wait for data
int count = _in->read();