Use a better way to set the listener position and orientation
This commit is contained in:
parent
c2f2f25046
commit
15c6131f0e
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user