blob: 5af0935bcf48b2ee9cb1b999a673a8adadf90a2f [file] [log] [blame]
Guido van Rossum50692d61991-09-15 21:05:15 +00001import time
2import al
3dev = 1
4name = ['input source', 'left input atten', 'right input atten', \
5 'input rate', 'output rate', \
6 'left speaker gain', 'right speaker gain', \
7 'input count', 'output count', 'unused count', \
8 'sync input to aes', 'sync output to aes', \
9 ]
10x = al.queryparams(dev)
11al.getparams(dev, x)
12while 1:
13 time.millisleep(100)
14 y = x[:]
15 al.getparams(dev, x)
16 if x <> y:
17 for i in range(0, len(x), 2):
18 if x[i+1] <> y[i+1]:
19 print name[x[i]], ':', y[i+1], '-->', x[i+1]