Add missing Variant => LV2 Atom case.
(Not likely to actually be used any time soon but fixes warning and does something reasonable if lossy).
This commit is contained in:
parent
07c08e4673
commit
0274c93eac
@ -1224,6 +1224,10 @@ forge_variant(LV2_Atom_Forge* forge, const Variant& value)
|
|||||||
switch (value.type()) {
|
switch (value.type()) {
|
||||||
case Variant::NOTHING:
|
case Variant::NOTHING:
|
||||||
break;
|
break;
|
||||||
|
case Variant::BEATS:
|
||||||
|
// No atom type for this, just forge a double
|
||||||
|
lv2_atom_forge_double(forge, value.get_beats().to_double());
|
||||||
|
break;
|
||||||
case Variant::BOOL:
|
case Variant::BOOL:
|
||||||
lv2_atom_forge_bool(forge, value.get_bool());
|
lv2_atom_forge_bool(forge, value.get_bool());
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user