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_real.cxx,1.2,1.3


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

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

Modified Files:
        sound_real.cxx 
Log Message:
check for non-existing music files


Index: sound_real.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/sound/sound_real.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sound_real.cxx      19 Feb 2003 11:33:00 -0000      1.2
+++ sound_real.cxx      20 Feb 2003 19:20:09 -0000      1.3
@@ -165,10 +165,13 @@
 #endif    
     }
   
-  music_session = new CL_SoundBuffer_Session(music_sample->prepare());
-  music_session->set_volume(volume * 0.5f); // FIXME: music_volume
-  music_session->set_looping(false);
-  music_session->play();
+  if (music_sample)
+    {
+      music_session = new CL_SoundBuffer_Session(music_sample->prepare());
+      music_session->set_volume(volume * 0.5f); // FIXME: music_volume
+      music_session->set_looping(false);
+      music_session->play();
+    }
 }
 
 } // namespace Sound





reply via email to

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