From dd1879e08050a5c0dfab87901293e83f5ac0b320 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Thu, 29 Jun 2006 23:44:39 +0000 Subject: [PATCH] Ambient sound loops again. SVN-Revision: 3807 --- data/levels/test/ambient_sound.stl | 6 +++--- data/levels/world1/20 - End of the Tunnel.stl | 6 +++--- src/audio/stream_sound_source.hpp | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/data/levels/test/ambient_sound.stl b/data/levels/test/ambient_sound.stl index 1e1431643..b4a3a3de8 100644 --- a/data/levels/test/ambient_sound.stl +++ b/data/levels/test/ambient_sound.stl @@ -134,12 +134,12 @@ ) (spawnpoint (name "main") (x 96) (y 160)) (ambient_sound (x 128) (y 900) (distance_factor 0.01) - (distance_bias 200.0) (sample "rain")) + (distance_bias 200.0) (sample "sounds/rain.wav")) (ambient_sound (x 512) (y 900) (distance_factor 0.05) - (distance_bias 100.0) (sample "waterfall") (volume 0.2)) + (distance_bias 100.0) (sample "sounds/waterfall.wav") (volume 0.2)) (ambient_sound (x 700) (y 900) (width 300) (height 200) (distance_factor 0.1) - (distance_bias 50.0) (sample "lava")) + (distance_bias 50.0) (sample "sounds/lava.wav")) (infoblock (x 128) (y 864) (message (_ "-Info #An ambient sound diff --git a/data/levels/world1/20 - End of the Tunnel.stl b/data/levels/world1/20 - End of the Tunnel.stl index 518af51de..1d5454de7 100644 --- a/data/levels/world1/20 - End of the Tunnel.stl +++ b/data/levels/world1/20 - End of the Tunnel.stl @@ -79,15 +79,15 @@ ) (stalactite (x 10157) - (y 63) + (y 64) ) (stalactite (x 10243) - (y 63) + (y 64) ) (stalactite (x 10325) - (y 63) + (y 64) ) (stalactite (x 14223) diff --git a/src/audio/stream_sound_source.hpp b/src/audio/stream_sound_source.hpp index de1dbc05c..de3b8658f 100644 --- a/src/audio/stream_sound_source.hpp +++ b/src/audio/stream_sound_source.hpp @@ -46,6 +46,7 @@ public: void set_looping(bool looping) { this->looping = looping; + alSourcei(source, AL_LOOPING, looping ? AL_TRUE : AL_FALSE); } bool get_looping() const { -- 2.11.0