audio_client.cpp fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
idf_component_register(
|
||||
SRCS "audio_client.cpp"
|
||||
REQUIRES espressif__esp_websocket_client port_bsp
|
||||
REQUIRES espressif__esp_websocket_client port_bsp codec_board
|
||||
PRIV_REQUIRES esp_event json
|
||||
INCLUDE_DIRS "./")
|
||||
|
||||
@@ -100,7 +100,7 @@ static void handle_binary_frame(const uint8_t *data, int len)
|
||||
{
|
||||
if (!s_playing) return;
|
||||
|
||||
uint8_t *chunk = heap_caps_malloc(len, MALLOC_CAP_SPIRAM);
|
||||
uint8_t *chunk = (uint8_t *)heap_caps_malloc(len, MALLOC_CAP_SPIRAM);
|
||||
if (!chunk) {
|
||||
ESP_LOGW(TAG, "PSRAM alloc failed (%d bytes)", len);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user