Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94e309 commit d9feb59Copy full SHA for d9feb59
1 file changed
Demo/sgi/cd/cdaiff.py
@@ -24,15 +24,21 @@ def main():
24
a.sampwidth = AL.SAMPLE_16
25
a.nchannels = AL.STEREO
26
a.samprate = AL.RATE_44100
27
+ r = readcd.Readcd().init()
28
l = []
29
for arg in sys.argv[2:]:
- l.append(eval(arg))
30
- print l
31
- r = readcd.Readcd().init()
32
- r.set(l)
+ x = eval(arg)
+ try:
+ l = len(x)
33
+ r.appendstretch(x[0], x[1])
34
+ except TypeError:
35
+ r.appendtrack(x)
36
r.setcallback(CD.AUDIO, writeaudio, a)
37
r.setcallback(CD.PTIME, ptimecallback, None)
- r.play()
38
39
+ r.play()
40
+ except KeyboardInterrupt:
41
+ pass
42
a.destroy()
43
44
main()
0 commit comments