diff options
author | Jesse Chappell <jesse@essej.net> | 2006-08-01 22:11:04 +0000 |
---|---|---|
committer | Jesse Chappell <jesse@essej.net> | 2006-08-01 22:11:04 +0000 |
commit | e0eac487a562aa93631a27f34cc0df1a1edfe048 (patch) | |
tree | a6943e34160b6a3852d2ca795dd0beef7b004258 /libs/ardour/crossfade.cc | |
parent | 0851f88d9d17f9e23c4c87e61c179f0b05a87b44 (diff) |
Fixed floating point resolution in saved state issue. Fixed OS X vector max routine to do the proper thing. Reduced the block size of temporary buffers during track export and normalization, which fixes some stack overflow problems on OS X.
git-svn-id: svn://localhost/ardour2/trunk@742 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/crossfade.cc')
-rw-r--r-- | libs/ardour/crossfade.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index bbe0c63b0a..dc4c074844 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -702,7 +702,7 @@ Crossfade::get_state () snprintf (buf, sizeof (buf), "%" PRIu32, (jack_nframes_t) floor ((*ii)->when)); pnode->add_property ("x", buf); - snprintf (buf, sizeof (buf), "%f", (*ii)->value); + snprintf (buf, sizeof (buf), "%.12g", (*ii)->value); pnode->add_property ("y", buf); child->add_child_nocopy (*pnode); } @@ -716,7 +716,7 @@ Crossfade::get_state () snprintf (buf, sizeof (buf), "%" PRIu32, (jack_nframes_t) floor ((*ii)->when)); pnode->add_property ("x", buf); - snprintf (buf, sizeof (buf), "%f", (*ii)->value); + snprintf (buf, sizeof (buf), "%.12g", (*ii)->value); pnode->add_property ("y", buf); child->add_child_nocopy (*pnode); } |