No midi since esp32 compiler bug

This commit is contained in:
Jason2866 2024-10-17 22:04:00 +02:00 committed by GitHub
parent 7c3f83215a
commit 58e3297b07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,10 @@
#include "AudioGeneratorMIDI.h" #include "AudioGeneratorMIDI.h"
#if defined(ESP32) && (__GNUC__ >= 8) && (__XTENSA__)
// Do not build, Espressif's GCC8+ has a compiler bug
#else // __GNUC__ == 8
#pragma GCC optimize ("O3") #pragma GCC optimize ("O3")
#define TSF_NO_STDIO #define TSF_NO_STDIO
@ -637,3 +641,4 @@ void AudioGeneratorMIDI::MakeStreamFromAFS(AudioFileSource *src, tsf_stream *afs
afs->size = &afs_size; afs->size = &afs_size;
} }
#endif //__GNUC__ == 8