floating point precision fix, after months of waiting, plus fix for width of string ID representation
git-svn-id: svn://localhost/ardour2/trunk@940 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c0fa196073
commit
aabf0be5a9
|
@ -15,7 +15,7 @@ import SCons.Node.FS
|
|||
SConsignFile()
|
||||
EnsureSConsVersion(0, 96)
|
||||
|
||||
version = '2.0beta3'
|
||||
version = '2.0beta3.2'
|
||||
|
||||
subst_dict = { }
|
||||
|
||||
|
|
|
@ -315,8 +315,13 @@ env.Alias ('tarball', env.Distribute (env['DISTTREE'],
|
|||
'ardour.menus', 'ardour.bindings', 'ardour.colors',
|
||||
'editor_xpms'
|
||||
] +
|
||||
gtkardour_files + vst_files + pixmap_files +
|
||||
glob.glob('po/*.po') + glob.glob('*.h')))
|
||||
gtkardour_files +
|
||||
vst_files +
|
||||
pixmap_files +
|
||||
skipped_files +
|
||||
audiounit_files +
|
||||
fft_analysis_files +
|
||||
glob.glob('po/*.po') + glob.glob('*.h')))
|
||||
|
||||
# generate a prototype full-featured ardour_ui.rc file
|
||||
|
||||
|
|
|
@ -1755,7 +1755,7 @@ AudioDiskstream::get_state ()
|
|||
|
||||
node->add_property ("playlist", _playlist->name());
|
||||
|
||||
snprintf (buf, sizeof(buf), "%f", _visible_speed);
|
||||
snprintf (buf, sizeof(buf), "%.12g", _visible_speed);
|
||||
node->add_property ("speed", buf);
|
||||
|
||||
node->add_property("name", _name);
|
||||
|
|
|
@ -803,7 +803,7 @@ Crossfade::set_state (const XMLNode& node)
|
|||
sscanf (prop->value().c_str(), "%" PRIu32, &x);
|
||||
|
||||
prop = (*i)->property ("y");
|
||||
sscanf (prop->value().c_str(), "%f", &y);
|
||||
sscanf (prop->value().c_str(), "%.12g", &y);
|
||||
|
||||
_fade_in.add (x, y);
|
||||
}
|
||||
|
@ -825,7 +825,7 @@ Crossfade::set_state (const XMLNode& node)
|
|||
sscanf (prop->value().c_str(), "%" PRIu32, &x);
|
||||
|
||||
prop = (*i)->property ("y");
|
||||
sscanf (prop->value().c_str(), "%f", &y);
|
||||
sscanf (prop->value().c_str(), "%.12g", &y);
|
||||
|
||||
_fade_out.add (x, y);
|
||||
}
|
||||
|
|
|
@ -212,7 +212,7 @@ VSTPlugin::get_state()
|
|||
char index[64];
|
||||
char val[32];
|
||||
snprintf (index, sizeof (index), "param_%ld", n);
|
||||
snprintf (val, sizeof (val), "%f", _plugin->getParameter (_plugin, n));
|
||||
snprintf (val, sizeof (val), "%.12g", _plugin->getParameter (_plugin, n));
|
||||
parameters->add_property (index, val);
|
||||
}
|
||||
|
||||
|
@ -244,11 +244,12 @@ VSTPlugin::set_state(const XMLNode& node)
|
|||
|
||||
for (i = child->properties().begin(); i != child->properties().end(); ++i) {
|
||||
long param;
|
||||
float val;
|
||||
sscanf ((*i)->name().c_str(), "param_%ld", ¶m);
|
||||
sscanf ((*i)->value().c_str(), "%f", &val);
|
||||
double val;
|
||||
|
||||
_plugin->setParameter (_plugin, param, val);
|
||||
sscanf ((*i)->name().c_str(), "param_%ld", ¶m);
|
||||
sscanf ((*i)->value().c_str(), "%g", &val);
|
||||
|
||||
_plugin->setParameter (_plugin, param, (float) val);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user