Skip to content

Commit 1cfb778

Browse files
committed
2 parents 567bc0b + 565fae2 commit 1cfb778

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/SnapClientRP2040/SnapClientRP2040.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include "SnapClient.h"
1111
#include "api/SnapProcessorRP2040.h"
1212

13-
//#define ARDUINO_LOOP_STACK_SIZE (10 * 1024)
14-
1513
I2SStream out;
1614
OpusAudioDecoder opus;
1715
WiFiClient wifi;

src/api/SnapProcessorRP2040.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SnapProcessorRP2040 : public SnapProcessor {
3232
ESP_LOGW(TAG, "begin: %d", buffer_count * 1024);
3333
// regular begin logic
3434
bool result = SnapProcessor::begin();
35-
35+
3636
// allocate buffer
3737
buffer.setBlockingRead(true);
3838
buffer.setBlockingWrite(true);
@@ -113,9 +113,9 @@ class SnapProcessorRP2040 : public SnapProcessor {
113113
return 0;
114114
}
115115

116-
// if (!p_snap_output->synchronizePlayback()) {
117-
// return size;
118-
// }
116+
if (!p_snap_output->synchronizePlayback()) {
117+
return size;
118+
}
119119

120120
if (!size_queue.writeArray(&size, 1)) {
121121
ESP_LOGW(TAG, "size_queue full");

0 commit comments

Comments
 (0)