streaming max 4 stereo wave files at the same time

This commit is contained in:
Sebastian
2025-06-04 02:24:28 +02:00
parent c3adf740bf
commit 15733e8b36
4 changed files with 180 additions and 32 deletions

18
tools/ringbuffer-test.cpp Normal file
View File

@ -0,0 +1,18 @@
#include <iostream>
#include "ringbuffer.h"
RingBuffer<int16_t> ringbuffer(25);
int main(){
ringbuffer.begin();
for(int j = 0; j < 3; j++){
for(int i = 0; i < 15; i++){
if(!ringbuffer.isFull()) ringbuffer.push(i);
}
std::cout << "---" << std::endl;
for(int i = 0; i < 25; i++){
if(!ringbuffer.isEmpty()) ringbuffer.pop();
}
}
}