diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-02-14 18:38:39 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-02-14 18:38:39 +0000 |
commit | 7fa70010daf92f90bf47933e846c0ded239a98f7 (patch) | |
tree | 95df0ac411488f83cba05e30963ee130aebff687 /muse2/muse/dssihost.cpp | |
parent | b704adf0e6f3dc8a73bb87ff92b9dd698ebe52ee (diff) |
WillyFoobar patch
Diffstat (limited to 'muse2/muse/dssihost.cpp')
-rw-r--r-- | muse2/muse/dssihost.cpp | 9 |
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 |