summaryrefslogtreecommitdiffstats
path: root/Demo/sgi
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-06-10 13:40:51 (GMT)
committerGuido van Rossum <guido@python.org>1993-06-10 13:40:51 (GMT)
commitf6d80326973c61bef6f1815b58b95e30b1521aea (patch)
treee5e86af0d0722044c63e1934f9385f8e2d9c94c2 /Demo/sgi
parentfa04170682a1b361d874937a541e57dbc16115a5 (diff)
downloadcpython-f6d80326973c61bef6f1815b58b95e30b1521aea.zip
cpython-f6d80326973c61bef6f1815b58b95e30b1521aea.tar.gz
cpython-f6d80326973c61bef6f1815b58b95e30b1521aea.tar.bz2
Impor VCR at the top. Change the way audio is recorded subtly.
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-xDemo/sgi/video/Vb.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py
index 68d50d2..160ef3d 100755
--- a/Demo/sgi/video/Vb.py
+++ b/Demo/sgi/video/Vb.py
@@ -30,6 +30,7 @@ import VFile
import VGrabber
import imageop
sys.path.append('/ufs/jack/src/av/vcr')
+import VCR
ARROW = 0
WATCH = 1
@@ -500,7 +501,6 @@ class VideoBagOfTricks:
def vcr_capture(self):
if not self.vcr:
- import VCR
try:
self.vcr = VCR.VCR().init()
self.vcr.wait()
@@ -787,7 +787,6 @@ class VideoBagOfTricks:
self.aout.setnchannels(nch)
self.aout.setsampwidth(width)
self.aout.setframerate(rate)
- self.aout.writeframes('')
c = al.newconfig()
c.setqueuesize(8000)
c.setchannels(nch)
@@ -809,7 +808,7 @@ class VideoBagOfTricks:
while not self.audio_stop:
data = self.aport.readsamps(4000)
if self.audio_ok:
- self.aout.writeframesraw(data)
+ self.aout.writeframes(data)
data = None
self.audio_busy = 0