summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/al/radio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sgi/al/radio.py')
-rwxr-xr-xDemo/sgi/al/radio.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/Demo/sgi/al/radio.py b/Demo/sgi/al/radio.py
deleted file mode 100755
index b9d30d2..0000000
--- a/Demo/sgi/al/radio.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /usr/bin/env python
-
-# radio [port]
-#
-# Receive audio packets broadcast by "broadcast.py" on another SGI machine.
-# Use apanel to set the output sampling rate to match that of the broadcast.
-
-import sys, al
-from socket import *
-
-port = 5555
-if sys.argv[1:]: port = eval(sys.argv[1])
-
-s = socket(AF_INET, SOCK_DGRAM)
-s.bind('', port)
-
-p = al.openport('radio', 'w')
-
-while 1:
- data = s.recv(1400)
- p.writesamps(data)