forked from W4D/soundcube-firmware
debugging
This commit is contained in:
@ -29,7 +29,7 @@ int16_t buffer2[ECHO];
|
||||
|
||||
WaveStream stream[NSTREAMS];
|
||||
|
||||
File streams[NSTREAMS];
|
||||
//File streams[NSTREAMS];
|
||||
bool streams_loaded = false;
|
||||
|
||||
I2S i2s(INPUT_PULLUP);
|
||||
@ -270,11 +270,12 @@ void setup() {
|
||||
if(SD.exists(filename)){
|
||||
stream[i].load(SD.open(filename));
|
||||
stream[i].begin();
|
||||
stream[i].play();
|
||||
//stream[i].play();
|
||||
Serial.println(stream[i].wavefile.blockalign);
|
||||
} else {
|
||||
for(int k = 0; k < 3; k++){
|
||||
digitalWrite(6, HIGH);
|
||||
delay(20);
|
||||
delay(100);
|
||||
digitalWrite(6, LOW);
|
||||
delay(50);
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@ class WaveStream{
|
||||
return playing ? wavefile.get() : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
//private:
|
||||
|
||||
WaveFile wavefile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user