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.
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
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) |