src_c/mixer.c露

Python types and module startup/shutdown functions defined in the pygame.mixerpygame module for loading and playing sounds extension module.

Header file: src_c/include/pygame_mixer.h

type pgSoundObject露

The pygame.mixer.Sound instance C structure.

PyTypeObject *pgSound_Type露

The pygame.mixer.Sound Python type.

PyObject *pgSound_New(Mix_Chunk *chunk)露

Return a new pygame.mixer.Sound instance for the SDL mixer chunk chunk. On failure, raise a Python exception and return NULL.

int pgSound_Check(PyObject *obj)露

Return true if obj is an instance of type pgSound_Type, but not a pgSound_Type subclass instance. A macro.

Mix_Chunk *pgSound_AsChunk(PyObject *x)露

Return the SDL Mix_Chunk struct associated with the pgSound_Type instance x. A macro that does no NULL or Python type check on x.

type pgChannelObject露

The pygame.mixer.Channel instance C structure.

PyTypeObject *pgChannel_Type露

The pygame.mixer.Channel Python type.

PyObject *pgChannel_New(int channelnum)露

Return a new pygame.mixer.Channel instance for the SDL mixer channel channelnum. On failure, raise a Python exception and return NULL.

int pgChannel_Check(PyObject *obj)露

Return true if obj is an instance of type pgChannel_Type, but not a pgChannel_Type subclass instance. A macro.

int pgChannel_AsInt(PyObject *x)露

Return the SDL mixer music channel number associated with pgChannel_Type instance x. A macro that does no NULL or Python type check on x.




Edit on GitHub