aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sgi/al/rec_play.py')
-rwxr-xr-xDemo/sgi/al/rec_play.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/Demo/sgi/al/rec_play.py b/Demo/sgi/al/rec_play.py
deleted file mode 100755
index 693c96e453d..00000000000
--- a/Demo/sgi/al/rec_play.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# records an AIFF sample and plays it
-# infinity number of times.
-#
-
-import time
-import al
-
-def recordit () :
- p = al.openport('hello', 'r')
- print 'recording...'
- buf = p.readsamps(500000)
- print 'done.'
- p.closeport()
-
- return buf
-
-def playit (buf) :
- p = al.openport('hello', 'w')
- print 'playing...'
- p.writesamps(buf)
- while p.getfilled() > 0:
- time.sleep(0.01)
- print 'done.'
- p.closeport()
-
-while 1 :
- playit (recordit ())