Commits

Anonymous committed b2c56e0

micro changes

Comments (0)

Files changed (8)

Demo/sgi/al/alwatch.py

 for i in range(1, len(params), 2):
 	params[i] = -1
 while 1:
-	time.millisleep(100)
+	time.sleep(0.1)
 	old = params[:]
 	al.getparams(dev, params)
 	if params <> old:

Demo/sgi/al/broadcast.py

-#! /ufs/guido/bin/sgi/python
+#! /usr/local/bin/python
 
 # broadcast [port]
 #

Demo/sgi/al/cmpaf.py

 import audioop
 import sys
 
-class Cmpaf():
-	def init(self):
+class Cmpaf:
+	def __init__(self):
 		parsetree = flp.parse_form('cmpaf_form','form')
 		flp.create_full_form(self, parsetree)
 		c = al.newconfig()
 		self.do_adpcm = self.do_ulaw = self.do_diff = 0
 		self.acstate = None
 		self.form.show_form(FL.PLACE_SIZE, 1, 'compare audio formats')
-		return self
 
 	def run(self):
 		while 1:
 	def cb_diff(self, obj, val):
 		self.do_diff = obj.get_button()
 
-cmpaf = Cmpaf().init()
+cmpaf = Cmpaf()
 cmpaf.run()

Demo/sgi/al/playaiff.py

 def play(p, data, offset, blocksize):
 	data = data[offset:]
 	p.writesamps(data)
-	while p.getfilled() > 0: time.millisleep(10)
+	while p.getfilled() > 0: time.sleep(0.01)
 
 main()

Demo/sgi/al/playold.py

 		if not buf: break
 		port.writesamps(buf)
 	while port.getfilled() > 0:
-		time.millisleep(100)
+		time.sleep(0.1)
 
 try:
 	main()

Demo/sgi/al/radio.py

-#! /ufs/guido/bin/sgi/python
+#! /usr/local/bin/python
 
 # radio [port]
 #

Demo/sgi/al/rec_play.py

 	print 'playing...'
 	p.writesamps(buf)
 	while p.getfilled() > 0:
-		time.millisleep(10)
+		time.sleep(0.01)
 	print 'done.'
 	p.closeport()
 

Demo/sgi/al/unicast.py

-#! /ufs/guido/bin/sgi/python
+#! /usr/local/bin/python
 
 # unicast host [port]
 #
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.