Mixer/Plugin_Module: Fix detection of INTEGER hint when default 1 hint is specified.
This commit is contained in:
parent
865a14b74b
commit
2545510006
|
@ -580,18 +580,19 @@ Plugin_Module::load ( unsigned long id )
|
||||||
if (LADSPA_IS_HINT_SAMPLE_RATE(HintDesc)) {
|
if (LADSPA_IS_HINT_SAMPLE_RATE(HintDesc)) {
|
||||||
Default *= sample_rate();
|
Default *= sample_rate();
|
||||||
}
|
}
|
||||||
if (LADSPA_IS_HINT_INTEGER(HintDesc)) {
|
}
|
||||||
if ( p.hints.ranged &&
|
|
||||||
0 == p.hints.minimum &&
|
if (LADSPA_IS_HINT_INTEGER(HintDesc)) {
|
||||||
1 == p.hints.maximum )
|
if ( p.hints.ranged &&
|
||||||
p.hints.type = Port::Hints::BOOLEAN;
|
0 == p.hints.minimum &&
|
||||||
else
|
1 == p.hints.maximum )
|
||||||
p.hints.type = Port::Hints::INTEGER;
|
|
||||||
Default = floorf(Default);
|
|
||||||
}
|
|
||||||
if (LADSPA_IS_HINT_TOGGLED(HintDesc)){
|
|
||||||
p.hints.type = Port::Hints::BOOLEAN;
|
p.hints.type = Port::Hints::BOOLEAN;
|
||||||
}
|
else
|
||||||
|
p.hints.type = Port::Hints::INTEGER;
|
||||||
|
Default = floorf(Default);
|
||||||
|
}
|
||||||
|
if (LADSPA_IS_HINT_TOGGLED(HintDesc)){
|
||||||
|
p.hints.type = Port::Hints::BOOLEAN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue