debugging

This commit is contained in:
2025-06-12 19:21:24 +02:00
parent c1e204953f
commit b78060aac2
2 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@ int16_t buffer2[ECHO];
WaveStream stream[NSTREAMS]; WaveStream stream[NSTREAMS];
File streams[NSTREAMS]; //File streams[NSTREAMS];
bool streams_loaded = false; bool streams_loaded = false;
I2S i2s(INPUT_PULLUP); I2S i2s(INPUT_PULLUP);
@ -270,11 +270,12 @@ void setup() {
if(SD.exists(filename)){ if(SD.exists(filename)){
stream[i].load(SD.open(filename)); stream[i].load(SD.open(filename));
stream[i].begin(); stream[i].begin();
stream[i].play(); //stream[i].play();
Serial.println(stream[i].wavefile.blockalign);
} else { } else {
for(int k = 0; k < 3; k++){ for(int k = 0; k < 3; k++){
digitalWrite(6, HIGH); digitalWrite(6, HIGH);
delay(20); delay(100);
digitalWrite(6, LOW); digitalWrite(6, LOW);
delay(50); delay(50);
} }

View File

@ -127,7 +127,7 @@ class WaveStream{
return playing ? wavefile.get() : 0; return playing ? wavefile.get() : 0;
} }
private: //private:
WaveFile wavefile; WaveFile wavefile;