/[enigma]/enigma/src/sound.cc
ViewVC logotype

Diff of /enigma/src/sound.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by dheck, Thu Jun 19 22:23:30 2003 UTC revision 1.18 by reallysoft, Mon Jul 7 21:14:05 2003 UTC
# Line 35  using namespace std; Line 35  using namespace std;
35    
36  namespace  namespace
37  {  {
38      bool sound_enabled = true;      bool sound_enabled      = true;
39      bool music_enabled = true;      bool sound_enabled_temp = false;
40      bool sound_initialized = false;      bool music_enabled      = true;
41        bool sound_initialized  = false;
42    
43      int    sound_freq     = MIX_DEFAULT_FREQUENCY;      int    sound_freq     = MIX_DEFAULT_FREQUENCY;
44      Uint16 sound_format   = MIX_DEFAULT_FORMAT;      Uint16 sound_format   = MIX_DEFAULT_FORMAT;
# Line 121  sound::EnableSound() Line 122  sound::EnableSound()
122  }  }
123    
124  void  void
125    sound::TempDisableSound() {
126        sound_enabled_temp = sound_enabled;
127        sound_enabled      = false;
128    }
129    void
130    sound::TempReEnableSound() {
131        sound_enabled = sound_enabled_temp;
132    }
133    
134    
135    void
136  sound::DisableMusic()  sound::DisableMusic()
137  {  {
138      music_enabled = false;      music_enabled = false;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26