add mpg.c and codecs stubs

This commit is contained in:
philippe44
2019-05-25 00:39:38 -07:00
parent 3aec88e87d
commit faa6cf1aa8
3 changed files with 43 additions and 6 deletions

View File

@@ -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