mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 04:57:06 +03:00
add mpg.c and codecs stubs
This commit is contained in:
29
main/esp32.c
29
main/esp32.c
@@ -3,6 +3,8 @@
|
||||
#include "esp_system.h"
|
||||
#include "squeezelite.h"
|
||||
|
||||
extern log_level loglevel;
|
||||
|
||||
void get_mac(u8_t mac[]) {
|
||||
esp_read_mac(mac, ESP_MAC_WIFI_STA);
|
||||
}
|
||||
@@ -14,3 +16,30 @@ _sig_func_ptr signal(int sig, _sig_func_ptr func) {
|
||||
void *audio_calloc(size_t nmemb, size_t size) {
|
||||
return calloc(nmemb, size);
|
||||
}
|
||||
|
||||
struct codec *register_mpg(void) {
|
||||
LOG_INFO("mpg unavailable");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_AUDIO_FAAD
|
||||
struct codec *register_faad(void) {
|
||||
LOG_INFO("aac unavailable");
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_AUDIO_MAD
|
||||
struct codec *register_mad(void) {
|
||||
LOG_INFO("mad unavailable");
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_AUDIO_FLAC
|
||||
struct codec *register_flac(void) {
|
||||
LOG_INFO("flac unavailable");
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user