1 # Read mono 16bit samples from stdin and write them to the audio device.
2 # Assume the sampling rate is compatible.
3 # Use a small queue size to minimize delays.
13 c
.setchannels(AL
.MONO
)
15 p
= al
.openport('', 'w', c
)
17 data
= sys
.stdin
.read(BUFSIZE
)
22 except KeyboardInterrupt: