Changeset 26 for trunk/Classes/sound.mm


Ignore:
Timestamp:
2010-05-28 07:39:52 (2 years ago)
Author:
kpoole
Message:

Episode 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Classes/sound.mm

    r19 r26  
    2222#ifdef __IPHONEOS__ 
    2323    #include "iSound.h" 
    24     iSound *gSound; 
     24    iSound *gSound = NULL; 
    2525#else 
    2626    #include "SDL_mixer.h" 
     
    347347//      if(SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) 
    348348//          return false; 
    349      
    350     gSound = new iSound(); 
     349    if (gSound == NULL) 
     350        gSound = new iSound(); 
    351351 
    352352    if(!mix_ok) { 
     
    422422 
    423423    if (music || sound || bell || UI_sound) { 
    424         sound::close_sound(); 
     424//      sound::close_sound(); 
    425425        if (!sound::init_sound()) { 
    426426//          ERR_AUDIO << "Error initializing audio device: " << Mix_GetError() << "\n"; 
Note: See TracChangeset for help on using the changeset viewer.