Skip to content

Commit

Permalink
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
Browse files Browse the repository at this point in the history
  • Loading branch information
gward committed Nov 30, 2002
1 parent 97708bc commit 9a568eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Modules/ossaudiodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand All @@ -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 },
};

Expand All @@ -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)
Expand Down

0 comments on commit 9a568eb

Please sign in to comment.