src_c/cdrom.c¶
The pygame.cdrom
pygame module for audio cdrom control extension module. Only available for SDL 1.
Header file: src_c/include/pygame.h
-
type
pgCDObject
¶ The
pygame.cdrom.CD
instance C struct.
-
PyTypeObject
pgCD_Type
¶ The
pygame.cdrom.CD
Python type.
-
PyObject *
pgCD_New
(int id)¶ Return a new
pygame.cdrom.CD
instance for CD drive id. On error raise a Python exception and returnNULL
.
-
int
pgCD_Check
(PyObject *x)¶ Return true if x is a
pygame.cdrom.CD
instance. Will return false for a subclass ofCD
. This is a macro. No check is made that x is notNULL
.
-
int
pgCD_AsID
(PyObject *x)¶ Return the CD identifier associated with the
pygame.cdrom.CD
instance x. This is a macro. No check is made that x is apygame.cdrom.CD
instance or is notNULL
.
Edit on GitHub