Mixer/Plugin_Module: Fix detection of INTEGER hint when default 1 hint is specified.

This commit is contained in:
Jonathan Moore Liles 2013-08-23 17:04:47 -07:00
parent 865a14b74b
commit 2545510006
1 changed files with 12 additions and 11 deletions

View File

@ -580,6 +580,8 @@ 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 (LADSPA_IS_HINT_INTEGER(HintDesc)) {
if ( p.hints.ranged && if ( p.hints.ranged &&
0 == p.hints.minimum && 0 == p.hints.minimum &&
@ -593,7 +595,6 @@ Plugin_Module::load ( unsigned long id )
p.hints.type = Port::Hints::BOOLEAN; p.hints.type = Port::Hints::BOOLEAN;
} }
} }
}
#else #else
Default = 0.0f; Default = 0.0f;
#endif #endif