Created
February 9, 2016 16:38
-
-
Save bennuttall/78058115cf689b73348d to your computer and use it in GitHub Desktop.
pygame sounds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame.mixer | |
| from pygame.mixer import Sound | |
| pygame.mixer.init() | |
| sound = Sound("samples/drum_tom_mid_hard.wav") | |
| sound.play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment