mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
strip commented pygame from sound.py
This commit is contained in:
parent
da6211b9ef
commit
cdc37fa7c0
1 changed files with 0 additions and 26 deletions
|
@ -64,32 +64,6 @@ def playExternal(path):
|
|||
manager = QueueMonitor()
|
||||
manager.start()
|
||||
|
||||
# Pygame
|
||||
##########################################################################
|
||||
|
||||
# try:
|
||||
# import pygame
|
||||
# pygame.mixer.pre_init(44100,-16,2, 1024 * 3)
|
||||
# pygame.mixer.init()
|
||||
# soundsAvailable = True
|
||||
# except:
|
||||
# soundsAvailable = False
|
||||
# print "Warning, pygame not available. No sounds will play."
|
||||
|
||||
# def playPyGame(path):
|
||||
# "Play a sound. Expects a unicode pathname."
|
||||
# if not soundsAvailable:
|
||||
# return
|
||||
# path = path.encode(sys.getfilesystemencoding())
|
||||
# try:
|
||||
# if pygame.mixer.music.get_busy():
|
||||
# pygame.mixer.music.queue(path)
|
||||
# else:
|
||||
# pygame.mixer.music.load(path)
|
||||
# pygame.mixer.music.play()
|
||||
# except pygame.error:
|
||||
# return
|
||||
|
||||
# Mac audio support
|
||||
##########################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue