Skip to content

Commit

Permalink
Update tsf.h and use cubic resampling method
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir committed Feb 26, 2024
1 parent 9315254 commit 97be348
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 60 deletions.
2 changes: 1 addition & 1 deletion TheForceEngine/TFE_Audio/MidiSynth/soundFontDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace TFE_Audio
if (m_soundFont)
{
// Set the SoundFont rendering output mode
tsf_set_output(m_soundFont, TSF_STEREO_INTERLEAVED, sampleRate, 0);
tsf_set_output(m_soundFont, TSF_STEREO_INTERLEAVED, TSF_INTERP_CUBIC, sampleRate, 0);
tsf_set_max_voices(m_soundFont, SFD_MAX_VOICES);
// pre-allocate channels, clear programs or set them to the stored values.
for (s32 i = 0; i < MIDI_CHANNEL_COUNT; i++)
Expand Down
Loading

0 comments on commit 97be348

Please sign in to comment.