mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 22:47:15 +03:00
non-crashing CSpot + spi_master and override fixes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "Logger.h"
|
||||
|
||||
AudioChunkManager::AudioChunkManager()
|
||||
: bell::Task("AudioChunkManager", 4 * 1024, +0, 0) {
|
||||
: bell::Task("AudioChunkManager", 4 * 1024, +1, 0) {
|
||||
this->chunks = std::vector<std::shared_ptr<AudioChunk>>();
|
||||
startTask();
|
||||
}
|
||||
@@ -96,11 +96,7 @@ void AudioChunkManager::runTask() {
|
||||
break;
|
||||
|
||||
default:
|
||||
// printf("ID: %d: Got data chunk!\n", seqId);
|
||||
// 2 first bytes are size so we skip it
|
||||
// printf("(_)--- Free memory %d\n",
|
||||
// esp_get_free_heap_size());
|
||||
if (chunk == nullptr) {
|
||||
if (chunk.get() == nullptr) {
|
||||
return;
|
||||
}
|
||||
auto actualData = std::vector<uint8_t>(
|
||||
@@ -114,7 +110,7 @@ void AudioChunkManager::runTask() {
|
||||
} catch (...) {
|
||||
}
|
||||
} else {
|
||||
// usleep(100*1000);
|
||||
usleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user