13
0

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:
Paul Davis 2006-10-03 19:57:38 +00:00
parent c0fa196073
commit aabf0be5a9
5 changed files with 17 additions and 11 deletions

View File

@ -15,7 +15,7 @@ import SCons.Node.FS
SConsignFile()
EnsureSConsVersion(0, 96)
version = '2.0beta3'
version = '2.0beta3.2'
subst_dict = { }

View File

@ -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

View 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);

View File

@ -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);
}

View File

@ -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", &param);
sscanf ((*i)->value().c_str(), "%f", &val);
double val;
_plugin->setParameter (_plugin, param, val);
sscanf ((*i)->name().c_str(), "param_%ld", &param);
sscanf ((*i)->value().c_str(), "%g", &val);
_plugin->setParameter (_plugin, param, (float) val);
}
return 0;