* examples/readtrack.py:
Allow specifying the track to save.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* examples/readtrack.py:
|
||||||
|
Allow specifying the track to save.
|
||||||
|
|
||||||
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* morituri/common/task.py:
|
* morituri/common/task.py:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
@@ -16,11 +17,17 @@ gobject.threads_init()
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
log.init()
|
log.init()
|
||||||
|
|
||||||
|
|
||||||
runner = task.SyncRunner()
|
runner = task.SyncRunner()
|
||||||
|
|
||||||
checksums = []
|
checksums = []
|
||||||
fd, path = tempfile.mkstemp(suffix='.morituri')
|
if len(sys.argv) > 1:
|
||||||
os.close(fd)
|
path = sys.argv[1]
|
||||||
|
else:
|
||||||
|
fd, path = tempfile.mkstemp(suffix='.morituri.wav')
|
||||||
|
os.close(fd)
|
||||||
|
print 'storing track to %s' % path
|
||||||
|
|
||||||
fakeTable = table.Table([
|
fakeTable = table.Table([
|
||||||
table.Track( 1, 0, 15536),
|
table.Track( 1, 0, 15536),
|
||||||
|
|||||||
Reference in New Issue
Block a user