summaryrefslogtreecommitdiff
path: root/Modules/ossaudiodev.c
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2002-11-30 23:20:09 +0000
committerGreg Ward <gward@python.net>2002-11-30 23:20:09 +0000
commit9a568eb245c29ae81a418fc685bfa62016d0a744 (patch)
tree0ecaf9c3ff8c54dbefdf43ef5f73c07a1b06f9c4 /Modules/ossaudiodev.c
parent97708bc6f84c8f922ccb2b9b2ba053820ac18964 (diff)
downloadcpython-git-9a568eb245c29ae81a418fc685bfa62016d0a744.tar.gz
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r--Modules/ossaudiodev.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index dbdb48cf2b..63ea647511 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -87,7 +87,7 @@ newladobject(PyObject *arg)
char *basedev = NULL;
char *mode = NULL;
- /* Two ways to call linuxaudiodev.open():
+ /* Two ways to call open():
open(device, mode) (for consistency with builtin open())
open(mode) (for backwards compatibility)
because the *first* argument is optional, parsing args is
@@ -607,7 +607,7 @@ lad_getattr(lad_t *xp, char *name)
static PyTypeObject Ladtype = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "linuxaudiodev.linux_audio_device", /*tp_name*/
+ "ossaudiodev.oss_audio_device", /*tp_name*/
sizeof(lad_t), /*tp_size*/
0, /*tp_itemsize*/
/* methods */
@@ -620,13 +620,13 @@ static PyTypeObject Ladtype = {
};
static PyObject *
-ladopen(PyObject *self, PyObject *args)
+ossopen(PyObject *self, PyObject *args)
{
return (PyObject *)newladobject(args);
}
-static PyMethodDef linuxaudiodev_methods[] = {
- { "open", ladopen, METH_VARARGS },
+static PyMethodDef ossaudiodev_methods[] = {
+ { "open", ossopen, METH_VARARGS },
{ 0, 0 },
};
@@ -635,11 +635,11 @@ static PyMethodDef linuxaudiodev_methods[] = {
if (PyModule_AddIntConstant(mod, #name, (long) (name)) == -1) return;
void
-initlinuxaudiodev(void)
+initossaudiodev(void)
{
PyObject *m;
- m = Py_InitModule("linuxaudiodev", linuxaudiodev_methods);
+ m = Py_InitModule("ossaudiodev", ossaudiodev_methods);
OSSAudioError = PyErr_NewException("ossaudiodev.error", NULL, NULL);
if (OSSAudioError)