Forráskód Böngészése

update: pc模拟器,暂时禁用audio功能

Wendal Chen 2 hónapja
szülő
commit
4b39dc0e6e
2 módosított fájl, 6 hozzáadás és 4 törlés
  1. 3 3
      bsp/pc/include/luat_conf_bsp.h
  2. 3 1
      bsp/pc/port/driver/luat_audio_pc.c

+ 3 - 3
bsp/pc/include/luat_conf_bsp.h

@@ -64,9 +64,9 @@
 #define LUAT_USE_MINIZ 1
 #define LUAT_USE_GMSSL 1
 
-#define LUAT_USE_I2S  1
-#define LUAT_USE_MEDIA 1
-#define LUAT_USE_AUDIO 1
+// #define LUAT_USE_I2S  1
+// #define LUAT_USE_MEDIA 1
+// #define LUAT_USE_AUDIO 1
 
 //----------------------------
 // 常用工具库, 按需启用, cjson和pack是强烈推荐启用的

+ 3 - 1
bsp/pc/port/driver/luat_audio_pc.c

@@ -7,17 +7,18 @@
 #endif
 #endif
 
-#include "ffmpeg.h"
 
 #include "luat_base.h"
 #include "luat_malloc.h"
 #include "luat_msgbus.h"
+#ifdef LUAT_USE_AUDIO
 #include "luat_audio.h"
 #include "luat_rtos.h"
 #include "luat_timer.h"
 #include "luat_fs.h"
 #include "luat_i2s.h"
 #include <string.h>
+#include "ffmpeg.h"
 
 #define LUAT_LOG_TAG "audio_pc"
 #include "luat_log.h"
@@ -280,3 +281,4 @@ int luat_audio_init(uint8_t multimedia_id, uint16_t init_vol, uint16_t init_mic_
     return 0;
 }
 
+#endif