]> granicus.if.org Git - python/commit
* Don't put the device in non-blocking mode at open() time; this makes
authorGreg Ward <gward@python.net>
Sat, 30 Nov 2002 22:56:44 +0000 (22:56 +0000)
committerGreg Ward <gward@python.net>
Sat, 30 Nov 2002 22:56:44 +0000 (22:56 +0000)
commit131bce035a5d5f726bf226f5325fed08cc50215c
treefdfc550db30a66f03a4c4a73fe7c54e9d630aa0c
parent04613a930863486db854ecbdfffdaa27222b1265
* Don't put the device in non-blocking mode at open() time; this makes
  it impossible to access blocking mode!

* Rename write() to writeall(), and add a write() method that just
  does one write().

* Rearrange/simplify writeall(): in particular, don't supply a timeout
  to select().  Let it block forever if it has to.

* Add a bunch of simple ioctl() wrappers: nonblock(), setfmt(),
  getfmts(), channels(), speed(), sync(), reset(), post().  These
  wrap, respectively, SNDCTL_DSP_NONBLOCK, SNDCTL_DSP_SETFMT,
  SNDCTL_DSP_GETFMTS, etc.

* Reduce flush() (which was a wrapper for the SNDCTL_DSP_SYNC ioctl) to
  an alias for sync().

* Rearrange the lad_methods list to reflect the order in which the
  methods are defined, and add some grouping comments.
Modules/ossaudiodev.c