Skip to content

Instantly share code, notes, and snippets.

BarCamp is a technology & design unconference where the attendees determine what's on the schedule. This ad-hoc conference is an intense event with discussions, demos, and a lively hallway track that attracts some of Grand Rapids' best and brightest. Sponsors have their brand associated with one of Grand Rapids' most unique events and have access to an engaged, enthusiastic audience. Attendees know that these companies are as forward-thinking and tech-savvy as they are.

@brousch
brousch / main.py
Created October 18, 2013 20:55 — forked from tshirtman/main.py
class MediaPlayer(object):
'''
MediaPlayer object is used to avoid keeping multiple sound files in memory
'''
def __init__(self):
self._media_player = None
def play_sound(self, soundfile, volume):
if not soundfile.startswith('/'):
soundfile = join(getcwd(), 'sounds', soundfile)