* morituri/common/task.py:

Introduce constants for FRAMES_PER_DISC_FRAME
	* examples/ARcue.py:
	  Use the constant.
	  Get the CRC right for the last track too.
This commit is contained in:
Thomas Vander Stichele
2009-04-05 16:17:31 +00:00
parent 18631a0fb6
commit 9488415ce7
3 changed files with 30 additions and 19 deletions

View File

@@ -51,7 +51,8 @@ def main(path):
print 'CRCing %s from CD frame %r for %r' % (path, offset, length)
crctask = task.CRCAudioRipTask(path,
trackNumber=trackIndex + 1, trackCount=len(cuefile.tracks),
frameStart=offset * 588, frameLength=length * 588)
frameStart=offset * task.FRAMES_PER_DISC_FRAME,
frameLength=length * task.FRAMES_PER_DISC_FRAME)
if not crctask:
print 'error: path %s not found' % file.path