Mixer: Set a default upper bound on module parameters of 1 in case the module (LADSPA Plugins in particular) doesn't specify one.

This commit is contained in:
Jonathan Moore Liles 2013-04-17 19:49:37 -07:00
parent ea380f00f9
commit 00a78fdb27
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ public:
type = LINEAR;
ranged = false;
minimum = 0;
maximum = 0;
maximum = 1; /* FIXME: totally bogus, but some
* plugins (SWH delays) don't
* provide an upper bound. */
default_value = 0.0f;
dimensions = 1;
visible = true;