comparison plugin/LADSPAPluginFactory.cpp @ 190:61681a2bc1e6

keep MIN and MAX compatibility (VC and linux compilation)
author lbajardsilogic
date Tue, 27 Nov 2007 13:26:04 +0000
parents afcf540ae3a2
children
comparison
equal deleted inserted replaced
189:6a31322cd9ed 190:61681a2bc1e6
152 if (LADSPA_IS_HINT_BOUNDED_BELOW(d)) { 152 if (LADSPA_IS_HINT_BOUNDED_BELOW(d)) {
153 float lb = descriptor->PortRangeHints[port].LowerBound; 153 float lb = descriptor->PortRangeHints[port].LowerBound;
154 minimum = lb; 154 minimum = lb;
155 } else if (LADSPA_IS_HINT_BOUNDED_ABOVE(d)) { 155 } else if (LADSPA_IS_HINT_BOUNDED_ABOVE(d)) {
156 float ub = descriptor->PortRangeHints[port].UpperBound; 156 float ub = descriptor->PortRangeHints[port].UpperBound;
157 minimum = min(0.0, ub - 1.0); 157 minimum = MIN(0.0, ub - 1.0);
158 } 158 }
159 159
160 if (LADSPA_IS_HINT_SAMPLE_RATE(d)) { 160 if (LADSPA_IS_HINT_SAMPLE_RATE(d)) {
161 minimum *= m_sampleRate; 161 minimum *= m_sampleRate;
162 } 162 }