[Top][All Lists]
[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: |
Wed, 25 Apr 2007 20:35:18 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/04/25 20:35:18
Modified files:
src/core : AudioClip.cpp
Log message:
* partially revert last change, set_state() always should set the
complete state
since it is used for copy clip...!
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClip.cpp?cvsroot=traverso&r1=1.79&r2=1.80
Patches:
Index: AudioClip.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/AudioClip.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- AudioClip.cpp 25 Apr 2007 15:58:49 -0000 1.79
+++ AudioClip.cpp 25 Apr 2007 20:35:18 -0000 1.80
@@ -121,7 +121,6 @@
QDomElement e = node.toElement();
isTake = e.attribute( "take", "").toInt();
- isMuted = e.attribute( "mute", "" ).toInt();
set_gain( e.attribute( "gain", "" ).toFloat() );
m_normfactor = e.attribute( "normfactor", "1.0" ).toFloat();
@@ -129,6 +128,14 @@
m_song->get_audioclip_manager()->select_clip(this);
}
+ m_readSourceId = e.attribute("source", "").toLongLong();
+ isMuted = e.attribute( "mute", "" ).toInt();
+
+ sourceStartFrame = e.attribute( "sourcestart", "" ).toUInt();
+ m_length = e.attribute( "length", "0" ).toUInt();
+ sourceEndFrame = sourceStartFrame + m_length;
+ set_track_start_frame( e.attribute( "trackstart", "" ).toUInt());
+
QDomElement curvesNode = node.firstChildElement("Curves");
if (!curvesNode.isNull()) {
QDomElement fadeInNode = curvesNode.firstChildElement("FadeIn");