stringstream needs to preserve plenty of significant digits when writing automation...
authorBen Loftis <ben@glw.com>
Tue, 17 Feb 2009 22:52:09 +0000 (22:52 +0000)
committerBen Loftis <ben@glw.com>
Tue, 17 Feb 2009 22:52:09 +0000 (22:52 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4617 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/automation_event.cc

index 44cba83f38fd611fbb488d6cc903dae61a20bd45..d5a7d50bb11942629d53b31e84962e2098f8f265 100644 (file)
@@ -1250,6 +1250,8 @@ AutomationList::serialize_events ()
 {
        XMLNode* node = new XMLNode (X_("events"));
        stringstream str;
+       
+       str.precision(15);  //10 digits is enough digits for 24 hours at 96kHz
 
        for (iterator xx = events.begin(); xx != events.end(); ++xx) {
                str << (double) (*xx)->when;