Allocate a bigger (30KByte) Buffer for Audio.
This commit is contained in:
parent
6989248970
commit
7dcb0cb673
@ -47,6 +47,14 @@ void setup() {
|
|||||||
ArduinoOTA.handle();
|
ArduinoOTA.handle();
|
||||||
delay(100);
|
delay(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Serial.println("Setting up audio...");
|
||||||
|
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
|
||||||
|
audio.setVolume(1);
|
||||||
|
audio.forceMono(true);
|
||||||
|
audio.setBufsize(30000, -1);
|
||||||
|
audio.setConnectionTimeout(1000, 1000);
|
||||||
|
|
||||||
Serial.println("Initializing SPI...");
|
Serial.println("Initializing SPI...");
|
||||||
SPI.begin();
|
SPI.begin();
|
||||||
//SPI.setHwCs(false);
|
//SPI.setHwCs(false);
|
||||||
@ -81,11 +89,6 @@ void setup() {
|
|||||||
pinMode(PIN_BTN_TRACK_NEXT, INPUT_PULLUP);
|
pinMode(PIN_BTN_TRACK_NEXT, INPUT_PULLUP);
|
||||||
pinMode(PIN_BTN_TRACK_PREV, INPUT_PULLUP);
|
pinMode(PIN_BTN_TRACK_PREV, INPUT_PULLUP);
|
||||||
|
|
||||||
Serial.println("Setting up audio...");
|
|
||||||
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
|
|
||||||
audio.setVolume(15);
|
|
||||||
audio.forceMono(true);
|
|
||||||
|
|
||||||
Serial.println("Setup finished.");
|
Serial.println("Setup finished.");
|
||||||
|
|
||||||
audio.setVolume(12);
|
audio.setVolume(12);
|
||||||
|
Loading…
Reference in New Issue
Block a user