summaryrefslogtreecommitdiffstats
path: root/Tools/audiopy
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-10-31 22:52:54 (GMT)
committerBarry Warsaw <barry@python.org>1998-10-31 22:52:54 (GMT)
commitb0d1b068d92f405cea053a199ae259260ff151d0 (patch)
treed3c0b21dc7c7483463dea649b9f23c63a0158c97 /Tools/audiopy
parent2c8b35bdd25b0946d4ea35e74a1e20ccd4679325 (diff)
downloadcpython-b0d1b068d92f405cea053a199ae259260ff151d0.zip
cpython-b0d1b068d92f405cea053a199ae259260ff151d0.tar.gz
cpython-b0d1b068d92f405cea053a199ae259260ff151d0.tar.bz2
audio(7I) suggests that applications do the following to get the
device and control pseudo-device: - first look for the device filename in the environment variable AUDIODEV. - if not found, use /dev/audio - calculate the control device by tacking "ctl" onto the base device name. We now do this. Also, if the open fails, we call PyErr_SetFromErrnoWithFilename() to give a more informative error message. Added a fileno() method to the audio object returned from open(). This returns the file descriptor which can be used by applications to set up SIGPOLL notification, as per the manpage.
Diffstat (limited to 'Tools/audiopy')
0 files changed, 0 insertions, 0 deletions