From 15c6131f0e46241afc1fb863db7e821c4a4f355a Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Fri, 8 Nov 2019 10:51:56 +0100 Subject: [PATCH] Use a better way to set the listener position and orientation --- simgear/sound/soundmgr_test.cxx | 3 +-- simgear/sound/soundmgr_test2.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/simgear/sound/soundmgr_test.cxx b/simgear/sound/soundmgr_test.cxx index 1b8a375f..68c075f3 100644 --- a/simgear/sound/soundmgr_test.cxx +++ b/simgear/sound/soundmgr_test.cxx @@ -30,8 +30,7 @@ int main( int argc, char *argv[] ) { smgr->activate(); // prevent NaNs - SGQuatd orient = SGQuatd::fromYawPitchRollDeg(0.0, 0.0, 0.0); - smgr->set_orientation( orient ); + smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) ); SGPath srcDir(SRC_DIR); diff --git a/simgear/sound/soundmgr_test2.cxx b/simgear/sound/soundmgr_test2.cxx index 3728261d..373f616e 100644 --- a/simgear/sound/soundmgr_test2.cxx +++ b/simgear/sound/soundmgr_test2.cxx @@ -31,8 +31,7 @@ int main( int argc, char *argv[] ) { SGPath srcDir(SRC_DIR); // prevent NaNs - SGQuatd orient = SGQuatd::fromYawPitchRollDeg(0.0, 0.0, 0.0); - smgr->set_orientation( orient ); + smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) ); printf("default position and orientation\n"); SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);