src_c/cdrom.c

The pygame.cdrompygame 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 return NULL.

int pgCD_Check(PyObject *x)

Return true if x is a pygame.cdrom.CD instance. Will return false for a subclass of CD. This is a macro. No check is made that x is not NULL.

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 a pygame.cdrom.CD instance or is not NULL.




Edit on GitHub