Use a better way to set the listener position and orientation

This commit is contained in:
Erik Hofman 2019-11-08 10:51:56 +01:00
parent c2f2f25046
commit 15c6131f0e
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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);