/[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.16 by dheck, Mon Jun 16 12:28:18 2003 UTC revision 1.17 by dheck, Thu Jun 19 22:23:30 2003 UTC
# Line 86  sound::UpdateVolume() Line 86  sound::UpdateVolume()
86          return;                 // SDL_mixer crashes without this check          return;                 // SDL_mixer crashes without this check
87    
88      int soundvol = int(options::SoundVolume * MIX_MAX_VOLUME);      int soundvol = int(options::SoundVolume * MIX_MAX_VOLUME);
89      Mix_Volume(-1, Max(0, Min(soundvol, MIX_MAX_VOLUME)));      Mix_Volume (-1, Clamp (soundvol, 0, MIX_MAX_VOLUME));
90      int musicvol = int(options::MusicVolume * MIX_MAX_VOLUME);      int musicvol = int(options::MusicVolume * MIX_MAX_VOLUME);
91      Mix_VolumeMusic(Max(0, Min(musicvol, MIX_MAX_VOLUME)));      Mix_VolumeMusic (Clamp (musicvol, 0, MIX_MAX_VOLUME));
92  }  }
93    
94  void  void

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

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