[Top][All Lists]
[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();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/sound sound.cxx,1.1,1.2 sound_real.cxx,1.1,1.2,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src action_holder.cxx,1.10,1.11 client.cxx,1.41,1.42 credits.cxx,1.16,1.17 game_session.cxx,1.26,1.27 game_session.hxx,1.15,1.16 level_result.cxx,1.9,1.10 pingu_action_factory.cxx,1.12,1.13 pingu_action_factory.hxx,1.10,1.11 pingus_menu_manager.cxx,1.19,1.20 plf.cxx,1.13,1.14 plf.hxx,1.8,1.9 theme_selector.cxx,1.9,1.10 xml_plf.cxx,1.32,1.33
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/actions Makefile.am,1.13,1.14
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src action_holder.cxx,1.10,1.11 client.cxx,1.41,1.42 credits.cxx,1.16,1.17 game_session.cxx,1.26,1.27 game_session.hxx,1.15,1.16 level_result.cxx,1.9,1.10 pingu_action_factory.cxx,1.12,1.13 pingu_action_factory.hxx,1.10,1.11 pingus_menu_manager.cxx,1.19,1.20 plf.cxx,1.13,1.14 plf.hxx,1.8,1.9 theme_selector.cxx,1.9,1.10 xml_plf.cxx,1.32,1.33
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/actions Makefile.am,1.13,1.14
- Index(es):