summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/Vrecb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-17 15:11:41 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-17 15:11:41 (GMT)
commit21a3ff9d5d9d8cad0bc52cb603df93d38e139840 (patch)
tree533c4f8e2a23ecaa6099c868035b1463881ff1a7 /Demo/sgi/video/Vrecb.py
parent96b608cf6ddb4c7b670c15a365ed8b14accd5d37 (diff)
downloadcpython-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/Vrecb.py')
-rwxr-xr-xDemo/sgi/video/Vrecb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/sgi/video/Vrecb.py b/Demo/sgi/video/Vrecb.py
index f726fe3..f568779 100755
--- a/Demo/sgi/video/Vrecb.py
+++ b/Demo/sgi/video/Vrecb.py
@@ -309,7 +309,7 @@ def record(v, info, filename, audiofilename, \
# Construct header and write it
#
try:
- vout = VFile.VoutFile().init(filename)
+ vout = VFile.VoutFile(filename)
except IOError, msg:
print filename, ':', msg
sys.exit(1)
@@ -389,8 +389,8 @@ def record(v, info, filename, audiofilename, \
AQSIZE = 8*8000 # XXX should be a user option
def initaudio(filename, stop, start, 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]