- uninitialize music module | |
- None | |
- query the music module | |
- play the current loaded music | |
- query state of the music | |
- fadeout current music | |
- stop the playing music | |
- pause the playing music | |
- restarts the paused music | |
- restarts music | |
- set music volume | |
- query music volume | |
- load current music |
pygame.music.quit() -> None
Stops playback of any music and uninitializes the
module.
pygame.music.get_init() -> bool
Returns true if the music module is initialized.
pygame.music.get_busy() -> bool
Returns true if music is currently playing
pygame.music.stop() -> None
Stops playback of the current music.
pygame.music.pause() -> None
Temporarily stops the current music.
pygame.music.unpause() -> None
Restarts playback of the current music object when
paused.
pygame.music.rewind() -> None
Restarts playback of the current music.
pygame.music.get_volume() -> val
Get the current volume for the music. Value is
between 0.0 and 1.0.