traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core AudioSource.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core AudioSource.cpp
Date: Wed, 27 Jun 2007 13:17:06 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/06/27 13:17:06

Modified files:
        src/core       : AudioSource.cpp 

Log message:
        also store the rate to the project file, we need it to calculate the 
length of the audiofile in case it is not in use by any audioclip! (and thus 
not initialized by libsndfile) 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioSource.cpp?cvsroot=traverso&r1=1.24&r2=1.25

Patches:
Index: AudioSource.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/AudioSource.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- AudioSource.cpp     5 Jun 2007 12:47:09 -0000       1.24
+++ AudioSource.cpp     27 Jun 2007 13:17:06 -0000      1.25
@@ -75,6 +75,7 @@
        node.setAttribute("origbitdepth", m_origBitDepth);
        node.setAttribute("wasrecording", m_wasRecording);
        node.setAttribute("length", m_length);
+       node.setAttribute("rate", m_rate);
 
        return node;
 }
@@ -91,6 +92,7 @@
        set_dir( e.attribute("dir", "" ));
        m_id = e.attribute("id", "").toLongLong();
        m_length = e.attribute("length", "0").toUInt();
+       m_rate = e.attribute("rate", "0").toUInt();
        m_origBitDepth = e.attribute("origbitdepth", "0").toInt();
        m_wasRecording = e.attribute("wasrecording", "0").toInt();
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]