- increase block time while allocating memory for decoded chunks

o wait max. 200ms and try to allocate memory every 1 ms
- set sync task to max priority and http task to (max priority - 1)
- mute audio if a hard resync happens to prevent clicks and other audible distortions
- reduce LWIP buffer sizes

Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
Karl Osterseher
2023-01-03 19:12:41 +01:00
Unverified
parent d9c19e744e
commit 0c98a99a73
4 changed files with 64 additions and 44 deletions

View File

@@ -75,7 +75,7 @@ SemaphoreHandle_t decoderWriteSemaphore = NULL;
const char *VERSION_STRING = "0.0.2";
#define HTTP_TASK_PRIORITY (configMAX_PRIORITIES - 1) // 9
#define HTTP_TASK_PRIORITY (configMAX_PRIORITIES - 2) // 9
#define HTTP_TASK_CORE_ID 1 // 1 // tskNO_AFFINITY
#define OTA_TASK_PRIORITY 6
@@ -628,6 +628,13 @@ void flac_task(void *pvParameters) {
}
}
/**
*
*/
esp_err_t audio_set_mute(bool mute) {
return audio_hal_set_mute(board_handle->audio_hal, mute);
}
/**
*
*/