~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to cocos/audio/__init__.py

  • Committer: facundo at com
  • Date: 2010-11-20 01:42:31 UTC
  • mfrom: (62.1.3 lint-issues)
  • Revision ID: facundo@taniquetil.com.ar-20101120014231-b2tkyc3mwr84ggcc
Project reorder and lint issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
__all__ = ['SDL', 'pygame']
 
2
 
 
3
_working = True
 
4
 
 
5
try:
 
6
    import pygame.mixer
 
7
except ImportError, error:
 
8
    _working = False
 
9
 
 
10
def initialize(arguments={}):
 
11
    global _working
 
12
    if arguments is None:
 
13
        _working = False
 
14
        music.set_control('dummy')
 
15
    if _working:
 
16
        pygame.mixer.init(**arguments)
 
17
        music.set_control('pygame')
 
18