traverso-commit
[Top][All Lists]
Advanced

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

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


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core Song.cpp
Date: Mon, 13 Aug 2007 11:24:49 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/08/13 11:24:49

Modified files:
        src/core       : Song.cpp 

Log message:
        convert m_transportFrame -> m_transportLocation in process_export(), 
fixes export bug :) 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Song.cpp?cvsroot=traverso&r1=1.128&r2=1.129

Patches:
Index: Song.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Song.cpp,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -b -r1.128 -r1.129
--- Song.cpp    13 Aug 2007 00:01:52 -0000      1.128
+++ Song.cpp    13 Aug 2007 11:24:49 -0000      1.129
@@ -781,7 +781,8 @@
        Mixer::apply_gain_to_buffer(m_masterOut->get_buffer(1, nframes), 
nframes, get_gain());
 
        // update the m_transportFrame
-       m_transportFrame += nframes;
+//     m_transportFrame += nframes;
+       m_transportLocation.add_frames(nframes, 
audiodevice().get_sample_rate());
 
        return 1;
 }
@@ -930,7 +931,7 @@
        // We need to seek to a different position then the current one,
        // else the seek won't happen at all :)
        TimeRef location = m_transportLocation;
-       location.add_frames(audiodevice().get_buffer_size(), 
audiodevice().get_sample_rate());
+       location.add_frames(1, audiodevice().get_sample_rate());
        set_transport_pos(location);
 }
 




reply via email to

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