fix(audio): clipped SPI audio on nv14/el18/x12s (#5905)

This commit is contained in:
richardclli
2025-02-14 08:51:05 +10:00
committed by GitHub
parent d644f73f4a
commit c766a0dcff
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -90,10 +90,10 @@ constexpr uint8_t AUDIO_FILENAME_MAXLEN = (AUDIO_LUA_FILENAME_MAXLEN > AUDIO_MOD
#if defined(SIMU) && defined(SIMU_AUDIO)
#define AUDIO_BUFFER_COUNT (10) // simulator needs more buffers for smooth audio
#elif defined(PCBX12S)
#elif defined(AUDIO_SPI)
#define AUDIO_BUFFER_COUNT (2) // smaller than Taranis since there is also a buffer on the ADC chip
#elif defined(PCBPL18)
#define AUDIO_BUFFER_COUNT (10) // PL18 need more buffer for smooth audio
#elif defined(STORAGE_USE_SPI_FLASH)
#define AUDIO_BUFFER_COUNT (10) // SPI Flash need more buffer for smooth audio
#else
#define AUDIO_BUFFER_COUNT (3)
#endif