@@ -2052,11 +2052,11 @@ TSFDEF int tsf_note_on(tsf* f, int preset_index, int key, float vel)
20522052 tsf_voice_lfo_setup (& voice -> modlfo , region -> delayModLFO , region -> freqModLFO , f -> outSampleRate );
20532053 tsf_voice_lfo_setup (& voice -> viblfo , region -> delayVibLFO , region -> freqVibLFO , f -> outSampleRate );
20542054 }
2055- // #ifndef TSF_SAMPLES_SHORT
2055+ #ifndef TSF_SAMPLES_SHORT
20562056 return 1 ;
2057- // #else
2058- // return voicePlayIndex + 1;
2059- // #endif
2057+ #else
2058+ return voicePlayIndex + 1 ;
2059+ #endif
20602060}
20612061
20622062TSFDEF int tsf_bank_note_on (tsf * f , int bank , int preset_number , int key , float vel )
@@ -2086,12 +2086,10 @@ TSFDEF void tsf_note_off(tsf* f, int preset_index, int key)
20862086 }
20872087}
20882088
2089- #if 0
2090- // Less than 0.5% speed difference seen w/fast
20912089/**
20922090 * Stops all voices with the given playing index. If no key provided or if -1, fallbacks to tsf_note_off
20932091 */
2094- TSFDEF void tsf_note_off_fast (tsf * f , int preset_index , int key , int playIndex = -1 )
2092+ TSFDEF void tsf_note_off_fast (tsf * f , int preset_index , int key , int playIndex )
20952093{
20962094 if (playIndex < 0 ) {
20972095 tsf_note_off (f , preset_index , key );
@@ -2104,7 +2102,6 @@ TSFDEF void tsf_note_off_fast(tsf* f, int preset_index, int key, int playIndex =
21042102 }
21052103 }
21062104}
2107- #endif
21082105
21092106TSFDEF int tsf_bank_note_off (tsf * f , int bank , int preset_number , int key )
21102107{
0 commit comments