# HG changeset patch # User Neil Muller # Date 1336858644 -7200 # Node ID 75033f790e7d1e1717b734a63dd7f9d9065fa5ca # Parent 57981202bfa532f3f5fcc141a9498b358e13c4f7 Remove hooks for sound support - we can add them back easily enough later diff -r 57981202bfa5 -r 75033f790e7d gamelib/constants.py --- a/gamelib/constants.py Sat May 12 23:30:45 2012 +0200 +++ b/gamelib/constants.py Sat May 12 23:37:24 2012 +0200 @@ -7,12 +7,6 @@ WINDOW_ICON = "icons/icon_24.png" -# Sound related (standard options) -FREQ = 44100 -BITSIZE = -16 # unsigned 16 bit -CHANNELS = 2 -BUFFER = 1024 - # Result codes for UI hints (MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, INFO) = range(6) diff -r 57981202bfa5 -r 75033f790e7d gamelib/main.py --- a/gamelib/main.py Sat May 12 23:30:45 2012 +0200 +++ b/gamelib/main.py Sat May 12 23:37:24 2012 +0200 @@ -13,16 +13,12 @@ from gamelib.data import load_image from gamelib.mainmenu import MainMenu -from gamelib.constants import (SCREEN, FREQ, BITSIZE, CHANNELS, BUFFER, - WINDOW_ICON) +from gamelib.constants import SCREEN, WINDOW_ICON def parse_args(args): parser = optparse.OptionParser() - parser.add_option('--no-sound', action="store_false", default=True, - dest="sound", help="disable sound") - parser.add_option('--load', type="string", default=None, dest="load", help="Save game to load") @@ -33,8 +29,6 @@ opts, args = parse_args(sys.argv) pygame.display.init() pygame.font.init() - if opts.sound: - pygame.mixer.init(FREQ, BITSIZE, CHANNELS, BUFFER) screen = pygame.display.set_mode(SCREEN) pygame.display.set_icon(load_image(WINDOW_ICON)) engine = Engine(screen)