From: Wolfgang Becker Date: Fri, 30 Jun 2006 21:03:53 +0000 (+0000) Subject: Ambient sound loops again, Part II X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e5efd34f1f8a286a33972b7e5de0e83faef0c475;p=supertux.git Ambient sound loops again, Part II SVN-Revision: 3814 --- diff --git a/data/levels/test/ambient_sound.stl b/data/levels/test/ambient_sound.stl index b4a3a3de8..4830ee6c3 100644 --- a/data/levels/test/ambient_sound.stl +++ b/data/levels/test/ambient_sound.stl @@ -140,6 +140,14 @@ (ambient_sound (x 700) (y 900) (width 300) (height 200) (distance_factor 0.1) (distance_bias 50.0) (sample "sounds/lava.wav")) + (ambient_sound (x 704) (y 97) (distance_factor 0.01) + (distance_bias 200.0) (sample "music/leveldone.ogg")) + (infoblock (x 704) (y 96) + (message (_ "-Info +#An ambient sound +#leveldone music +")) + ) (infoblock (x 128) (y 864) (message (_ "-Info #An ambient sound diff --git a/data/levels/world2/detour.stl b/data/levels/world2/detour.stl index 50e4c711b..4f0dc7527 100644 --- a/data/levels/world2/detour.stl +++ b/data/levels/world2/detour.stl @@ -23,8 +23,8 @@ ) (spawnpoint (name "main") - (x 69.24768) - (y 774.6863) + (x 64) + (y 864) ) (fish (x 2754.889) @@ -76,7 +76,7 @@ (speed 1) (width 100) (height 35) - (tiles 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1060 1063 1064 1044 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 1004 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1007 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1060 1063 1064 1067 1068 1015 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 102 83 83 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 1016 1013 1014 1014 1013 1014 1013 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1035 1001 1002 1001 1002 1001 1002 1001 1002 1001 1003 1061 0 0 0 0 0 0 0 0 0 1060 1063 1064 1067 1068 1014 1013 1035 1001 1001 1002 1038 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1008 1014 1014 1013 1014 1013 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1041 1005 1006 1005 1006 1005 1006 1005 1006 1005 1007 1065 1066 0 0 0 0 0 0 0 1063 1064 1067 1068 1014 1013 1014 1013 1041 1005 1005 1006 1037 1001 1002 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 1045 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 1012 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1014 1013 1014 1014 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1070 0 0 0 0 0 0 0 1067 1068 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1041 1005 1006 1037 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1002 1001 1002 1001 1002 1047 1007 0 0 0 0 0 0 0 0 0 0 0 0 0 1016 1014 1014 1013 1014 1013 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1014 1013 1014 1014 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1011 76 76 76 76 76 76 76 1012 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1043 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1006 1005 1006 1005 1006 1042 1019 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1016 1014 1013 1014 1013 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1014 1015 75 75 75 75 75 75 75 1008 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1009 1009 1009 1014 1014 1014 1009 1010 1009 1010 1014 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1015 76 76 76 76 76 76 76 76 76 76 76 76 76 76 76 76 1008 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1014 1015 75 75 75 75 75 75 75 1012 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1013 1013 1013 1014 1014 1014 1013 1014 1013 1014 1013 1013 1013 1013 1013 1013 1013 1013 1013 1009 1010 1013 1013 1013 1013 1013 1013 1013 1013 1015 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 1012 1014 1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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 133 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1060 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1000 133 1002 1001 132 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1060 1063 1064 1044 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 1004 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1007 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1060 1063 1064 1067 1068 1015 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 83 102 83 83 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 1016 1013 1014 1014 1013 1014 1013 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1035 1001 1002 1001 1002 1001 1002 1001 1002 1001 1003 1061 0 0 0 0 0 0 0 0 0 1060 1063 1064 1067 1068 1014 1013 1035 1001 1001 1002 1038 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1008 1014 1014 1013 1014 1013 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1041 1005 1006 1005 1006 1005 1006 1005 1006 1005 1007 1065 1066 0 0 0 0 0 0 0 1063 1064 1067 1068 1014 1013 1014 1013 1041 1005 1005 1006 1037 1001 1002 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44 1045 1003 0 0 0 0 0 0 0 0 0 0 0 0 0 1012 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1014 1013 1014 1014 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1070 0 0 0 0 0 0 0 1067 1068 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1041 1005 1006 1037 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1001 1002 1002 1001 1002 1001 1002 1047 1007 0 0 0 0 0 0 0 0 0 0 0 0 0 1016 1014 1014 1013 1014 1013 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1014 1013 1014 1014 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1011 76 76 76 76 76 76 76 1012 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1043 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1005 1006 1006 1005 1006 1005 1006 1042 1019 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1016 1014 1013 1014 1013 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1014 1015 75 75 75 75 75 75 75 1008 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1009 1009 1009 1014 1014 1014 1009 1010 1009 1010 1014 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1009 1015 76 76 76 76 76 76 76 76 76 76 76 76 76 76 76 76 1008 1014 1013 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1014 1013 1014 1013 1014 1013 1014 1013 1014 1014 1013 1014 1014 1013 1014 1013 1014 1015 75 75 75 75 75 75 75 1012 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1014 1013 1014 1013 1014 1013 1013 1013 1014 1014 1014 1013 1014 1013 1014 1013 1013 1013 1013 1013 1013 1013 1013 1013 1009 1010 1013 1013 1013 1013 1013 1013 1013 1013 1015 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 75 1012 1014 1013 1014) ) (tilemap (z-pos 100) diff --git a/src/audio/dummy_sound_source.cpp b/src/audio/dummy_sound_source.cpp index 13c1c2e03..4e4d99981 100644 --- a/src/audio/dummy_sound_source.cpp +++ b/src/audio/dummy_sound_source.cpp @@ -1,4 +1,4 @@ -// $Id: sound_source.hpp 3462 2006-04-28 19:38:41Z sommer $ +// $Id$ // // SuperTux // Copyright (C) 2006 Matthias Braun @@ -43,6 +43,10 @@ public: return is_playing; } + virtual void update() + { + } + virtual void set_looping(bool ) { } diff --git a/src/audio/sound_source.hpp b/src/audio/sound_source.hpp index 3824c3c1d..75469c3e9 100644 --- a/src/audio/sound_source.hpp +++ b/src/audio/sound_source.hpp @@ -34,6 +34,7 @@ public: virtual void play() = 0; virtual void stop() = 0; + virtual void update() = 0; virtual bool playing() = 0; virtual void set_looping(bool looping) = 0; diff --git a/src/audio/stream_sound_source.hpp b/src/audio/stream_sound_source.hpp index de3b8658f..de1dbc05c 100644 --- a/src/audio/stream_sound_source.hpp +++ b/src/audio/stream_sound_source.hpp @@ -46,7 +46,6 @@ public: void set_looping(bool looping) { this->looping = looping; - alSourcei(source, AL_LOOPING, looping ? AL_TRUE : AL_FALSE); } bool get_looping() const { diff --git a/src/object/ambient_sound.cpp b/src/object/ambient_sound.cpp index 6893054e7..1287391b7 100644 --- a/src/object/ambient_sound.cpp +++ b/src/object/ambient_sound.cpp @@ -197,6 +197,10 @@ AmbientSound::update(float deltat) // if (latency>0.001/distance_factor) // latency= + + if( sound_source != NULL ){ + sound_source->update(); + } } void