mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-10 18:19:42 -04:00
Sf2Player: properly update patch if panning support is enabled
If SF2_PANNING_SUPPORT is set, changed patches were applied to current channel after calling fluid_synth_noteon(...) - some notes still were played with the old patch until m_channel made one round trip.
This commit is contained in:
@@ -593,12 +593,14 @@ void sf2Instrument::playNote( notePlayHandle * _n, sampleFrame * )
|
||||
|
||||
m_synthMutex.lock();
|
||||
|
||||
#ifdef SF2_PANNING_SUPPORT
|
||||
updatePatch();
|
||||
#endif
|
||||
|
||||
fluid_synth_noteon( m_synth, pluginData->midiChannel, midiNote,
|
||||
_n->getMidiVelocity() );
|
||||
|
||||
#ifdef SF2_PANNING_SUPPORT
|
||||
updatePatch();
|
||||
|
||||
if( ++m_channel > m_maxChannels )
|
||||
{
|
||||
m_channel = 1;
|
||||
|
||||
Reference in New Issue
Block a user