">https://gcc.gnu.org/bugs/> for instructions.
(snip)
以下が問題
本来はGCCのバグ
次のようなパッチを当てると、コンパイル可能
code:ESP8266Audio-master/src/libtinysoundfont/tsf.h.diff
--- tsf.h.org 2022-01-22 23:53:09.000000000 +0900
+++ tsf.h 2022-01-22 23:55:01.000000000 +0900
@@ -190,6 +190,7 @@
TSFDEF int tsf_channel_set_bank_preset(tsf* f, int channel, int bank, int preset_number);
TSFDEF void tsf_channel_set_pan(tsf* f, int channel, float pan);
TSFDEF void tsf_channel_set_volume(tsf* f, int channel, float volume);
+TSFDEF void tsf_channel_set_volume_to_one(tsf* f, int channel);
TSFDEF void tsf_channel_set_pitchwheel(tsf* f, int channel, int pitch_wheel);
TSFDEF void tsf_channel_set_pitchrange(tsf* f, int channel, float pitch_range);
TSFDEF void tsf_channel_set_tuning(tsf* f, int channel, float tuning);
@@ -2054,6 +2055,10 @@
tsf_voice_endquick(v, f->outSampleRate);
}
+TSFDEF void tsf_channel_set_volume_to_one(tsf* f, int channel){
+ tsf_channel_set_volume(f, channel, 1.0f);
+}
+
TSFDEF void tsf_channel_midi_control(tsf* f, int channel, int controller, int control_value)
{
struct tsf_channel* c = tsf_channel_init(f, channel);
@@ -2079,7 +2084,7 @@
c->midiVolume = c->midiExpression = 16383;
c->midiPan = 8192;
c->bank = 0;
- tsf_channel_set_volume(f, channel, 1.0f);
+ tsf_channel_set_volume_to_one(f, channel);
tsf_channel_set_pan(f, channel, 0.5f);
tsf_channel_set_pitchrange(f, channel, 2.0f);
return;
当日の情報へのリンク
https://www.youtube.com/watch?v=o7rJlZmUFo4