- 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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user