summaryrefslogtreecommitdiff
path: root/muse2/muse/dssihost.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-02-14 18:38:39 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-02-14 18:38:39 +0000
commit7fa70010daf92f90bf47933e846c0ded239a98f7 (patch)
tree95df0ac411488f83cba05e30963ee130aebff687 /muse2/muse/dssihost.cpp
parentb704adf0e6f3dc8a73bb87ff92b9dd698ebe52ee (diff)
WillyFoobar patch
Diffstat (limited to 'muse2/muse/dssihost.cpp')
-rw-r--r--muse2/muse/dssihost.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/muse2/muse/dssihost.cpp b/muse2/muse/dssihost.cpp
index d1d599f7..88ad0eed 100644
--- a/muse2/muse/dssihost.cpp
+++ b/muse2/muse/dssihost.cpp
@@ -2009,7 +2009,9 @@ iMPEvent DssiSynthIF::getData(MidiPort* /*mp*/, MPEventList* el, iMPEvent i, uns
// memset(audioInBuffers[k], 0, sizeof(float) * n);
// Watch our limits.
- np = ports > synth->_outports ? synth->_outports : ports;
+ //willyfoobar-2011-02-13
+ //old code//np = ports > synth->_outports ? synth->_outports : ports;
+ np = ((unsigned long) ports) > synth->_outports ? synth->_outports : ((unsigned long) ports);
const DSSI_Descriptor* dssi = synth->dssi;
const LADSPA_Descriptor* descr = dssi->LADSPA_Plugin;
@@ -2939,7 +2941,10 @@ int DssiSynthIF::getControllerInfo(int id, const char** name, int* ctrl, int* mi
int DssiSynthIF::channels() const
{
- return synth->_outports > MAX_CHANNELS ? MAX_CHANNELS : synth->_outports;
+ //willyfoobar-2011-02-13
+ //!! either change return type to unsigend long or do this change
+ //old code //return synth->_outports > MAX_CHANNELS ? MAX_CHANNELS : synth->_outports;
+ return ((int)synth->_outports) > MAX_CHANNELS ? MAX_CHANNELS : ((int)synth->_outports) ;
}
int DssiSynthIF::totalOutChannels() const