Skip to content

Commit 668f7a0

Browse files
committed
don't stop client in loop
1 parent 090159e commit 668f7a0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/SnapConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# define CONFIG_NVS_FLASH false
1919
#endif
2020
#ifndef CONFIG_CHECK_HEAP
21-
# define CONFIG_CHECK_HEAP true
21+
# define CONFIG_CHECK_HEAP false
2222
#endif
2323

2424
// snapcast parameters;

src/api/SnapProcessor.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class SnapProcessor {
4949
virtual void end() {
5050
ESP_LOGD(TAG, "end");
5151
audioEnd();
52+
// ESP_LOGI(TAG, "... done reading from socket");
53+
p_client->stop();
5254
send_receive_buffer.resize(0);
5355
base_message_serialized.resize(0);
5456
}
@@ -141,8 +143,8 @@ class SnapProcessor {
141143
checkHeap();
142144
}
143145

144-
ESP_LOGI(TAG, "... done reading from socket");
145-
p_client->stop();
146+
// ESP_LOGI(TAG, "... done reading from socket");
147+
// p_client->stop();
146148

147149
if (id_counter % 100 == 0) {
148150
logHeap();

src/api/SnapProcessorRTOS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SnapProcessorRTOS : public SnapProcessor {
4040
const uint16_t TASK_STACK_SIZE = 10 * 1024;
4141
cpp_freertos::Task task{"output", TASK_STACK_SIZE, 1, task_copy};
4242
cpp_freertos::Queue size_queue{200, sizeof(size_t)};
43-
audio_tools::SynchronizedBufferRTOS<uint8_t> buffer{1024 * 20};
43+
audio_tools::SynchronizedBufferRTOS<uint8_t> buffer{0};
4444
bool task_started = false;
4545
int active_percent;
4646
static SnapProcessorRTOS *self;

0 commit comments

Comments
 (0)