[Python-checkins] python/dist/src/Modules ossaudiodev.c,1.16,1.17
gward@users.sourceforge.net
gward@users.sourceforge.net
Mon, 30 Dec 2002 19:02:26 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv31136
Modified Files:
ossaudiodev.c
Log Message:
Add a bunch of comments to clearly delineate sections of the code.
Index: ossaudiodev.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/ossaudiodev.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** ossaudiodev.c 31 Dec 2002 02:54:43 -0000 1.16
--- ossaudiodev.c 31 Dec 2002 03:02:23 -0000 1.17
***************
*** 87,90 ****
--- 87,95 ----
static PyObject *OSSAudioError;
+
+ /* ----------------------------------------------------------------------
+ * DSP object initialization/deallocation
+ */
+
static oss_t *
newossobject(PyObject *arg)
***************
*** 155,158 ****
--- 160,168 ----
}
+
+ /* ----------------------------------------------------------------------
+ * Mixer object initialization/deallocation
+ */
+
static oss_mixer_t *
newossmixerobject(PyObject *arg)
***************
*** 241,244 ****
--- 251,259 ----
}
+
+ /* ----------------------------------------------------------------------
+ * Helper functions
+ */
+
/* _do_ioctl_1_internal() is a wrapper for ioctls that take no inputs
but return an output -- ie. we need to pass a pointer to a local C
***************
*** 287,290 ****
--- 302,309 ----
+ /* ----------------------------------------------------------------------
+ * Methods of DSP objects (OSSType)
+ */
+
static PyObject *
oss_nonblock(oss_t *self, PyObject *args)
***************
*** 647,651 ****
}
! /* Mixer methods */
static PyObject *
oss_mixer_close(oss_mixer_t *self, PyObject *args)
--- 666,674 ----
}
!
! /* ----------------------------------------------------------------------
! * Methods of mixer objects (OSSMixerType)
! */
!
static PyObject *
oss_mixer_close(oss_mixer_t *self, PyObject *args)
***************
*** 754,757 ****
--- 777,784 ----
}
+
+ /* ----------------------------------------------------------------------
+ * Method tables and other bureaucracy
+ */
static PyMethodDef oss_methods[] = {