From 3ffbec41eec3c49782a42d7363496991993b62cb Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Fri, 23 Sep 2022 11:24:50 +0200 Subject: [PATCH] Prevent NaNs for orientation too --- simgear/sound/soundmgr_test.cxx | 2 ++ simgear/sound/soundmgr_test2.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/simgear/sound/soundmgr_test.cxx b/simgear/sound/soundmgr_test.cxx index 68c075f3..c08b8a54 100644 --- a/simgear/sound/soundmgr_test.cxx +++ b/simgear/sound/soundmgr_test.cxx @@ -31,6 +31,7 @@ int main( int argc, char *argv[] ) { // prevent NaNs smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) ); + smgr->set_orientation( SGQuatd::fromYawPitchRollDeg(0, 0, 0) ); SGPath srcDir(SRC_DIR); @@ -52,6 +53,7 @@ int main( int argc, char *argv[] ) { printf("playing sample2\n"); sleep(1); + printf("Note: OpenAL-Soft does not have native support for IMA4 encoded audio.\n"); SGSoundSample *sample3 = new SGSoundSample("jet_ima4.wav", srcDir); sample3->set_volume(0.5); sample3->set_pitch(0.8); diff --git a/simgear/sound/soundmgr_test2.cxx b/simgear/sound/soundmgr_test2.cxx index 373f616e..e874d1b1 100644 --- a/simgear/sound/soundmgr_test2.cxx +++ b/simgear/sound/soundmgr_test2.cxx @@ -32,6 +32,7 @@ int main( int argc, char *argv[] ) { // prevent NaNs smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) ); + smgr->set_orientation( SGQuatd::fromYawPitchRollDeg(0, 0, 0) ); printf("default position and orientation\n"); SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);