Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 63 forks source link

maybe need to update \components\esp-adf-libs\esp_codec\ #8

Closed bulazhang closed 3 years ago

bulazhang commented 3 years ago

I clone the newest code and built the get-start\play-mp3, get the following errors:

E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c: In function 'get_audio_type': E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:89:16: error: 'ESP_AUDIO_TYPE_M3U8' undeclared (first use in this function) return ESP_AUDIO_TYPE_M3U8; ^ E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:89:16: note: each undeclared identifier is reported only once for each function it appears in E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:92:16: error: 'ESP_AUDIO_TYPE_PLS' undeclared (first use in this function) return ESP_AUDIO_TYPE_PLS; ^ E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c: In function '_is_playlist': E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:131:28: error: 'ESP_AUDIO_TYPE_M3U8' undeclared (first use in this function) if (info->codec_fmt == ESP_AUDIO_TYPE_M3U8 || info->codec_fmt == ESP_AUDIO_TYPE_PLS) { ^ E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:131:70: error: 'ESP_AUDIO_TYPE_PLS' undeclared (first use in this function) if (info->codec_fmt == ESP_AUDIO_TYPE_M3U8 || info->codec_fmt == ESP_AUDIO_TYPE_PLS) { ^ E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c: In function '_resolve_playlist': E:/Workspace/ESP/ESP32-A1S-AudioKit/components/audio_stream/http_stream.c:240:27: error: 'ESP_AUDIO_TYPE_PLS' undeclared (first use in this function) if (info.codec_fmt == ESP_AUDIO_TYPE_PLS) {