From: ehofman Date: Wed, 7 Oct 2009 12:55:08 +0000 (+0000) Subject: add the option to tie a SampleGroup to the listener position and orientation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c56113d0dd0bba31bf1788a79694c966e5a1c477;p=flightgear.git add the option to tie a SampleGroup to the listener position and orientation --- diff --git a/src/ATCDCL/AIPlane.cxx b/src/ATCDCL/AIPlane.cxx index f672676eb..eecc070d9 100644 --- a/src/ATCDCL/AIPlane.cxx +++ b/src/ATCDCL/AIPlane.cxx @@ -54,6 +54,7 @@ FGAIPlane::FGAIPlane() { SGSoundMgr *smgr; smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr"); _sgr = smgr->find("atc", true); + _sgr->tie_to_listener(); } } diff --git a/src/Instrumentation/adf.cxx b/src/Instrumentation/adf.cxx index d2ac69145..9f9ba2d83 100644 --- a/src/Instrumentation/adf.cxx +++ b/src/Instrumentation/adf.cxx @@ -104,6 +104,7 @@ ADF::init () SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr"); _sgr = smgr->find("avionics", true); + _sgr->tie_to_listener(); morse.init(); diff --git a/src/Instrumentation/kr_87.cxx b/src/Instrumentation/kr_87.cxx index eab9bf69b..d0087c098 100644 --- a/src/Instrumentation/kr_87.cxx +++ b/src/Instrumentation/kr_87.cxx @@ -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(); } diff --git a/src/Instrumentation/marker_beacon.cxx b/src/Instrumentation/marker_beacon.cxx index ccb8499e1..3a0d33819 100644 --- a/src/Instrumentation/marker_beacon.cxx +++ b/src/Instrumentation/marker_beacon.cxx @@ -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(); diff --git a/src/Instrumentation/mk_viii.cxx b/src/Instrumentation/mk_viii.cxx index 3cdc6e3ef..e484127f7 100755 --- a/src/Instrumentation/mk_viii.cxx +++ b/src/Instrumentation/mk_viii.cxx @@ -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"); diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index f3b95c5e3..79f864c33 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -185,6 +185,7 @@ FGNavRadio::init () { SGSoundMgr *smgr = (SGSoundMgr *)globals->get_subsystem("soundmgr"); _sgr = smgr->find("avionics", true); + _sgr->tie_to_listener(); morse.init();