audio_client.cpp fix
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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 "./")
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user