Guido van Rossum | 50692d6 | 1991-09-15 21:05:15 +0000 | [diff] [blame^] | 1 | import time |
| 2 | import al |
| 3 | dev = 1 |
| 4 | name = ['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 | ] |
| 10 | x = al.queryparams(dev) |
| 11 | al.getparams(dev, x) |
| 12 | while 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] |