audio_client.cpp fix

This commit is contained in:
Mikkeli Matlock
2026-02-15 21:36:56 +09:00
parent dca989a01b
commit 7eb05ea983
3 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
"Bash(idf.py build:*)", "Bash(idf.py build:*)",
"Bash(for f in DSEG14C_BI_50px.c InziuIosevka_Slab_CC_12px.c InziuIosevka_Slab_CC_16px.c InziuIosevka_Slab_CC_20px.c InziuIosevka_Slab_CC_24px.c InziuIosevka_Slab_CC_32px.c)", "Bash(for f in DSEG14C_BI_50px.c InziuIosevka_Slab_CC_12px.c InziuIosevka_Slab_CC_16px.c InziuIosevka_Slab_CC_20px.c InziuIosevka_Slab_CC_24px.c InziuIosevka_Slab_CC_32px.c)",
"Bash(do sed -i '/\\\\.static_bitmap = 0,/d' \"$f\")", "Bash(do sed -i '/\\\\.static_bitmap = 0,/d' \"$f\")",
"Bash(done)" "Bash(done)",
"Bash(file:*)"
] ]
}, },
"outputStyle": "iseri", "outputStyle": "iseri",

View File

@@ -1,5 +1,5 @@
idf_component_register( idf_component_register(
SRCS "audio_client.cpp" 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 PRIV_REQUIRES esp_event json
INCLUDE_DIRS "./") INCLUDE_DIRS "./")

View File

@@ -100,7 +100,7 @@ static void handle_binary_frame(const uint8_t *data, int len)
{ {
if (!s_playing) return; 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) { if (!chunk) {
ESP_LOGW(TAG, "PSRAM alloc failed (%d bytes)", len); ESP_LOGW(TAG, "PSRAM alloc failed (%d bytes)", len);
return; return;