[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/core Song.cpp
From: |
Ben Levitt |
Subject: |
[Traverso-commit] traverso/src/core Song.cpp |
Date: |
Sat, 30 Jun 2007 00:15:31 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Ben Levitt <benjie> 07/06/30 00:15:31
Modified files:
src/core : Song.cpp
Log message:
fix bug with burning a song where the first track mark is > 0, and is
not aligned with a cd frame (75th of a sec). Export was up to a few hundred
samples too short, caused cdrdao to fail.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Song.cpp?cvsroot=traverso&r1=1.121&r2=1.122
Patches:
Index: Song.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Song.cpp,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -b -r1.121 -r1.122
--- Song.cpp 25 Jun 2007 15:59:59 -0000 1.121
+++ Song.cpp 30 Jun 2007 00:15:31 -0000 1.122
@@ -370,6 +370,8 @@
if (markers.size() >= 2) {
startframe = markers.at(0)->get_when();
PMESG2(" Start marker found at %d", startframe);
+ // round down to the start of the CD frome (75th of a
sec)
+ startframe = cd_to_frame(frame_to_cd(startframe,
m_project->get_rate()), m_project->get_rate());
spec->start_frame = startframe;
} else {
PMESG2(" No start marker found");