pygame2.sdlmixer.constants – Constants for SDL_mixer
This module contains the constants used throughout the
pygame2.sdlmixer modules.
Initialisation Constants
Those constants are used by the pygame2.sdlmixer.init() function.
-
pygame2.sdlmixer.constants.INIT_FLAC
- Initialises the FLAC library bindings.
-
pygame2.sdlmixer.constants.INIT_MOD
- Initialises the timidity library bindings.
-
pygame2.sdlmixer.constants.INIT_MP3
- Initialises the smpeg/mad library bindings.
-
pygame2.sdlmixer.constants.INIT_OGG
- Initialises the ogg/vorbis library bindings.
Fading Status Constants
Those constants indicate the fading status for pygame2.sdlmixer.Channel
and pygame2.sdlmixer.Music objects.
-
pygame2.sdlmixer.constants.NO_FADING
- Indicates that the Channel or Music is currently not faded.
-
pygame2.sdlmixer.constants.FADING_IN
- Indicates that the Channel or Music is currently fading in.
-
pygame2.sdlmixer.constants.FADING_OUT
- Indicates that the Channel or Music is currently fading out.
Music Type Constants
Those constants are used by the pygame2.sdlmixer.Music.type attribute.
-
pygame2.sdlmixer.constants.MUS_NONE
- Indicates no music being played at all.
-
pygame2.sdlmixer.constants.MUS_CMD
- Indicates an external command to be used for music playback.
-
pygame2.sdlmixer.constants.MUS_WAV
- The music format is WAV data.
-
pygame2.sdlmixer.constants.MUS_MOD
- The music format is MOD data.
-
pygame2.sdlmixer.constants.MUS_MID
- The music format is MIDI data.
-
pygame2.sdlmixer.constants.MUS_OGG
- The music format is Ogg/Vorbis encoded data.
-
pygame2.sdlmixer.constants.MUS_MP3
- The music format is MP3 encoded data (using smpeg as decoder).
-
pygame2.sdlmixer.constants.MUS_MP3_MAD
- The music format is MP3 encoded data (using libmad as decoder).
Miscellaneous Constants
-
pygame2.sdlmixer.constants.CHANNELS
- The default amount of ready-to-use allocated
pygame2.sdlmixer.Channel objects after the initial call to
pygame2.sdlmixer.open_audio().
-
pygame2.sdlmixer.constants.DEFAULT_FREQUENCY
- A good default sample rate in Hz for most sound cards (22050).
-
pygame2.sdlmixer.constants.DEFAULT_FORMAT
- The suggested default audio format (AUDIO_S16SYS).
-
pygame2.sdlmixer.constants.DEFAULT_CHANNELS
- The suggested default channel setting for pygame2.sdlmixer.open_audio().
This is 2 for stereo sound.
-
pygame2.sdlmixer.constants.MAX_VOLUME
- The maximum value for any volume setting.