From 48fdc708932d699fd4b1de1d8394c856d2c2be00 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 17 May 2010 23:27:42 +0200 Subject: [PATCH] Sf2Player: disable per-note-panning support for the time being The per-note-panning support is broken (not sure whether this is a bug in FluidSynth or our code) and leads to improperly panned sounds all the time - even with all notes being panned to center. Thus disable it until we have a proper fix for it. (cherry picked from commit 22489ae3212d193067d14634b017a17f241651a9) --- plugins/sf2_player/sf2_player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 51c2c9ef4..930384093 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -631,6 +631,7 @@ void sf2Instrument::playNote( notePlayHandle * _n, sampleFrame * ) SF2PluginData * pluginData = static_cast( _n->m_pluginData ); +#ifdef SOMEONE_FIXED_PER_NOTE_PANNING if( pluginData->fluidVoice && pluginData->lastPanning != _n->getPanning() ) { @@ -645,6 +646,7 @@ void sf2Instrument::playNote( notePlayHandle * _n, sampleFrame * ) pluginData->lastPanning = _n->getPanning(); } +#endif const float currentVelocity = _n->volumeLevel( tfp ) * 127; if( pluginData->fluidVoice &&