]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/soundmgr_openal.cxx
Use a reference counted pointer for the condition.
[simgear.git] / simgear / sound / soundmgr_openal.cxx
index d29b7fb1ae01d404df063dfd961c2f5f9bfea336..e53eccaccddf42eb5dd614ac627a9e1510ab1b8b 100644 (file)
@@ -68,7 +68,7 @@ extern "C" int isinf (double);
 #endif
 
 
-#include STL_IOSTREAM
+#include <iostream>
 
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/sg_path.hxx>
@@ -345,6 +345,6 @@ void SGSoundMgr::set_source_vel_all( ALfloat *vel ) {
     sample_map_iterator sample_end = samples.end();
     for ( ; sample_current != sample_end; ++sample_current ) {
        SGSoundSample *sample = sample_current->second;
-        sample->set_source_vel( vel );
+        sample->set_source_vel( vel, listener_vel );
     }
 }