]> git.mxchange.org Git - flightgear.git/commitdiff
add the option to tie a SampleGroup to the listener position and orientation
authorehofman <ehofman>
Wed, 7 Oct 2009 12:55:08 +0000 (12:55 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 8 Oct 2009 08:38:05 +0000 (10:38 +0200)
src/ATCDCL/AIPlane.cxx
src/Instrumentation/adf.cxx
src/Instrumentation/kr_87.cxx
src/Instrumentation/marker_beacon.cxx
src/Instrumentation/mk_viii.cxx
src/Instrumentation/navradio.cxx

index f672676eb8ad894e7ee3dd1665b3a1487b66b2b2..eecc070d908a6ed8a2f4c1a51f1617afa11996f0 100644 (file)
@@ -54,6 +54,7 @@ FGAIPlane::FGAIPlane() {
                SGSoundMgr *smgr;
                smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
                _sgr = smgr->find("atc", true);
+                _sgr->tie_to_listener();
        }
 }
 
index d2ac69145c262c2ff380aa3341c7643fdbc71a25..9f9ba2d835d90c6b5ff2800cf98946b469acf67a 100644 (file)
@@ -104,6 +104,7 @@ ADF::init ()
 
     SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
 
     morse.init();
 
index eab9bf69b3097a08207db812c2b5bd652254fd2b..d0087c0985429b53db48b60a32afe512e58c742b 100644 (file)
@@ -119,6 +119,7 @@ FGKR_87::~FGKR_87() {
 void FGKR_87::init () {
     SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
     morse.init();
 }
 
index ccb8499e109631b5bb52790f76557d076bb9ae4a..3a0d33819d24e28bc3607e73e571c6e7e2141f90 100644 (file)
@@ -119,6 +119,7 @@ FGMarkerBeacon::init ()
 
     SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
 
     morse.init();
     beacon.init();
index 3cdc6e3ef354855c0900508f87ddaa75fbcd79c8..e484127f79189e9417eb1609a3cdf4fdedce9740 100755 (executable)
@@ -2217,6 +2217,7 @@ MK_VIII::VoicePlayer::init ()
 
   SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
   _sgr = smgr->find("avionics", true);
+  _sgr->tie_to_listener();
 
   make_voice(&voices.application_data_base_failed, "application-data-base-failed");
   make_voice(&voices.bank_angle, "bank-angle");
index f3b95c5e3bd98a1914d861ade8b5a281dabbcb20..79f864c336994c8b6ed9d991627b04ce9a06e498 100644 (file)
@@ -185,6 +185,7 @@ FGNavRadio::init ()
 {
     SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr");
     _sgr = smgr->find("avionics", true);
+    _sgr->tie_to_listener();
 
     morse.init();