pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/sound sound.cxx,1.1,1.2 sound_real.c


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/sound sound.cxx,1.1,1.2 sound_real.cxx,1.1,1.2
Date: 19 Feb 2003 11:33:02 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/sound
In directory dark:/tmp/cvs-serv28273/sound

Modified Files:
        sound.cxx sound_real.cxx 
Log Message:
- fixed music support for levels
- removed call to delete_actions(), this causes memory leak, but gets rid of 
crashing


Index: sound.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/sound/sound.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sound.cxx   18 Feb 2003 17:30:32 -0000      1.1
+++ sound.cxx   19 Feb 2003 11:33:00 -0000      1.2
@@ -105,7 +105,7 @@
 PingusSound::play_music(const std::string & filename, float volume)
 {
   assert (sound);
-  sound->real_play_music(path_manager.complete (filename), volume);
+  sound->real_play_music(path_manager.complete ("music/" + filename), volume);
 }
 
 void

Index: sound_real.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/sound/sound_real.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sound_real.cxx      18 Feb 2003 17:30:32 -0000      1.1
+++ sound_real.cxx      19 Feb 2003 11:33:00 -0000      1.2
@@ -166,7 +166,7 @@
     }
   
   music_session = new CL_SoundBuffer_Session(music_sample->prepare());
-  music_session->set_volume(volume);
+  music_session->set_volume(volume * 0.5f); // FIXME: music_volume
   music_session->set_looping(false);
   music_session->play();
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]