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.Soundinstance C structure.
- 
PyTypeObject *pgSound_Type¶
- The - pygame.mixer.SoundPython type.
- 
PyObject *pgSound_New(Mix_Chunk *chunk)¶
- Return a new - pygame.mixer.Soundinstance 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_Typesubclass instance. A macro.
- 
Mix_Chunk *pgSound_AsChunk(PyObject *x)¶
- Return the SDL - Mix_Chunkstruct associated with the- pgSound_Typeinstance x. A macro that does no- NULLor Python type check on x.
- 
type pgChannelObject¶
- The - pygame.mixer.Channelinstance C structure.
- 
PyTypeObject *pgChannel_Type¶
- The - pygame.mixer.ChannelPython type.
- 
PyObject *pgChannel_New(int channelnum)¶
- Return a new - pygame.mixer.Channelinstance 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_Typesubclass instance. A macro.
- 
int pgChannel_AsInt(PyObject *x)¶
- Return the SDL mixer music channel number associated with - pgChannel_Typeinstance x. A macro that does no- NULLor Python type check on x.
Edit on GitHub
