diff options
author | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 (GMT) |
commit | 21a3ff9d5d9d8cad0bc52cb603df93d38e139840 (patch) | |
tree | 533c4f8e2a23ecaa6099c868035b1463881ff1a7 /Demo/sgi/video/Vrec.py | |
parent | 96b608cf6ddb4c7b670c15a365ed8b14accd5d37 (diff) | |
download | cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.zip cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.tar.gz cpython-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.tar.bz2 |
Uniformly replaced init() functions by __init__() constructors.
A few simple things seem to work, I haven't tested it thouroughly
though...
Diffstat (limited to 'Demo/sgi/video/Vrec.py')
-rwxr-xr-x | Demo/sgi/video/Vrec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sgi/video/Vrec.py b/Demo/sgi/video/Vrec.py index 164e89e..57b628c 100755 --- a/Demo/sgi/video/Vrec.py +++ b/Demo/sgi/video/Vrec.py @@ -253,7 +253,7 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \ # XXX (Strange: need fps of Indigo monitor, not of PAL or NTSC!) tpf = 1000.0 / fps # Time per field in msec if filename: - vout = VFile.VoutFile().init(filename) + vout = VFile.VoutFile(filename) if mono: format = 'mono' elif grey and greybits == 8: @@ -273,7 +273,7 @@ def record(v, info, filename, audiofilename, mono, grey, greybits, \ print 'done.' MAXSIZE = 20 # XXX should be a user option import Queue - queue = Queue.Queue().init(MAXSIZE) + queue = Queue.Queue(MAXSIZE) done = thread.allocate_lock() done.acquire_lock() convertor = None @@ -376,8 +376,8 @@ def saveframes(vout, queue, done, mono, monotreshold, convertor): AQSIZE = 8000 # XXX should be a user option def initaudio(filename, stop, done): - import thread, aiff - afile = aiff.Aiff().init(filename, 'w') + import thread, aifc + afile = aifc.open(filename, 'w') afile.nchannels = AL.MONO afile.sampwidth = AL.SAMPLE_8 params = [AL.INPUT_RATE, 0] |