forked from W4D/soundcube-firmware
more wave file parsing WIP -> weiter in OF
This commit is contained in:
@ -424,20 +424,5 @@ void setup1(){
|
||||
}
|
||||
|
||||
void loop1(){
|
||||
if(streams_loaded) {
|
||||
for (int i = 0; i < NSTREAMS; i++) {
|
||||
if(!ringbuffer[i].isFull()){
|
||||
int cnt = 0;
|
||||
while (!ringbuffer[i].isFull() && cnt < 10000) {
|
||||
uint8_t samplebyte[2];
|
||||
streams[i].read(samplebyte, 2);
|
||||
if(!streams[i].available()) streams[i].seek(44, SeekSet);
|
||||
|
||||
int16_t sample = (samplebyte[1] << 8) + samplebyte[0];
|
||||
ringbuffer[i].push(sample);
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user