diff options
author | Greg Ward <gward@python.net> | 2002-12-31 02:54:43 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2002-12-31 02:54:43 (GMT) |
commit | 2d6f9a9a869006e0a655be544279bbb074148fda (patch) | |
tree | 2ae6871eba347afa69357d023999ce2345524329 /Modules/ossaudiodev.c | |
parent | 5095a474084fe28fe1469bd2c307c6b2ea71fb6c (diff) | |
download | cpython-2d6f9a9a869006e0a655be544279bbb074148fda.zip cpython-2d6f9a9a869006e0a655be544279bbb074148fda.tar.gz cpython-2d6f9a9a869006e0a655be544279bbb074148fda.tar.bz2 |
Yet another renaming of some mixer methods:
devices(), stereodevices(), recdevices() ->
controls(), stereocontrols(), reccontrols()
Based on recommendation of Hannu Savolainen <hannu@opensound.com>:
The right term to use for things like bass/treble/mic/vol/etc is
"control".
"Device" refers to different mixer devices (/dev/mixer0 to /dev/mixerN).
"Channel" cannot be used because it refers to mono/stereo/multich
channels. In fact most mixer controls have left/right channels so ...
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r-- | Modules/ossaudiodev.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 21c2917..be5a888 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -672,23 +672,23 @@ oss_mixer_fileno(oss_mixer_t *self, PyObject *args) /* Simple mixer interface methods */ static PyObject * -oss_mixer_devices(oss_mixer_t *self, PyObject *args) +oss_mixer_controls(oss_mixer_t *self, PyObject *args) { - return _do_ioctl_1_internal(self->fd, args, "devices", + return _do_ioctl_1_internal(self->fd, args, "controls", SOUND_MIXER_READ_DEVMASK); } static PyObject * -oss_mixer_stereodevices(oss_mixer_t *self, PyObject *args) +oss_mixer_stereocontrols(oss_mixer_t *self, PyObject *args) { - return _do_ioctl_1_internal(self->fd, args, "stereodevices", + return _do_ioctl_1_internal(self->fd, args, "stereocontrols", SOUND_MIXER_READ_STEREODEVS); } static PyObject * -oss_mixer_recdevices(oss_mixer_t *self, PyObject *args) +oss_mixer_reccontrols(oss_mixer_t *self, PyObject *args) { - return _do_ioctl_1_internal(self->fd, args, "recdevices", + return _do_ioctl_1_internal(self->fd, args, "reccontrols", SOUND_MIXER_READ_RECMASK); } @@ -791,9 +791,9 @@ static PyMethodDef oss_mixer_methods[] = { { "fileno", (PyCFunction)oss_mixer_fileno, METH_VARARGS }, /* Simple ioctl wrappers */ - { "devices", (PyCFunction)oss_mixer_devices, METH_VARARGS }, - { "stereodevices", (PyCFunction)oss_mixer_stereodevices, METH_VARARGS}, - { "recdevices", (PyCFunction)oss_mixer_recdevices, METH_VARARGS}, + { "controls", (PyCFunction)oss_mixer_controls, METH_VARARGS }, + { "stereocontrols", (PyCFunction)oss_mixer_stereocontrols, METH_VARARGS}, + { "reccontrols", (PyCFunction)oss_mixer_reccontrols, METH_VARARGS}, { "get", (PyCFunction)oss_mixer_get, METH_VARARGS }, { "set", (PyCFunction)oss_mixer_set, METH_VARARGS }, { "get_recsrc", (PyCFunction)oss_mixer_get_recsrc, METH_VARARGS }, |