traverso-commit
[Top][All Lists]
Advanced

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

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


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core AudioClip.cpp
Date: Thu, 17 May 2007 19:15:49 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/05/17 19:15:49

Modified files:
        src/core       : AudioClip.cpp 

Log message:
        * clip lock is OFF by default! 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClip.cpp?cvsroot=traverso&r1=1.94&r2=1.95

Patches:
Index: AudioClip.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/AudioClip.cpp,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -b -r1.94 -r1.95
--- AudioClip.cpp       17 May 2007 08:39:23 -0000      1.94
+++ AudioClip.cpp       17 May 2007 19:15:49 -0000      1.95
@@ -126,11 +126,7 @@
        set_gain( e.attribute( "gain", "" ).toFloat() );
        m_normfactor =  e.attribute( "normfactor", "1.0" ).toFloat();
 
-       if (e.attribute( "locked", "1" ).toInt() == 1) {
-               isLocked = true;
-       } else {
-               isLocked = false;
-       }
+       isLocked = e.attribute( "locked", "0" ).toInt();
 
        if (e.attribute("selected", "0").toInt() == 1) {
                m_song->get_audioclip_manager()->select_clip(this);
@@ -665,6 +661,7 @@
        // If m_length isn't set yet, it means we are importing stuff instead 
of reloading from project file.
        // it's a bit weak this way, hopefull I'll get up something better in 
the future.
        // The positioning-length-offset and such stuff is still a bit weak :(
+       // NOTE: don't change, audio recording (finish_writesource()) assumes 
there is checked for length == 0 !!!
        if (m_length == 0) {
                sourceEndFrame = rs->get_nframes();
                m_length = sourceEndFrame;




reply via email to

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