Skip to content

Instantly share code, notes, and snippets.

@bennuttall
Created February 9, 2016 16:38
Show Gist options
  • Select an option

  • Save bennuttall/78058115cf689b73348d to your computer and use it in GitHub Desktop.

Select an option

Save bennuttall/78058115cf689b73348d to your computer and use it in GitHub Desktop.
pygame sounds
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