]> granicus.if.org Git - python/commit
Allow the device name to be passed to linuxaudiodev.open(), for
authorGreg Ward <gward@python.net>
Wed, 27 Nov 2002 22:19:15 +0000 (22:19 +0000)
committerGreg Ward <gward@python.net>
Wed, 27 Nov 2002 22:19:15 +0000 (22:19 +0000)
commita34b1a074929c1ca1b8458bd26563b2385a1fe6b
treede2ade0fc9a412812fab5e498ce97ddaafedf758
parentef786ae1a53d40107a6e7f9640a5029c1d663737
Allow the device name to be passed to linuxaudiodev.open(), for
consistency with the built-in open() (and every other sane open()
function, for that matter).  The two valid ways to call this open() are
now open(mode) and open(device, mode).

For backwards compatibility, retain the old open(mode) calling syntax --
this makes the error message when you call open(device) a bit confusing,
but oh well.

This is the first half of SF patch #644977.
Modules/linuxaudiodev.c