X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fopenal_test2.cxx;h=eb0da57e5007ccdd98a3b9c361da446156b3ee37;hb=c4b4c0ce59602a0b749e22b29d6ce5db6f654eae;hp=c28957b8cc23363b68e452615f11373c00b46a9c;hpb=f6358694ae8d32cd908408ccacf7ba04adbc3d10;p=simgear.git diff --git a/simgear/sound/openal_test2.cxx b/simgear/sound/openal_test2.cxx index c28957b8..eb0da57e 100644 --- a/simgear/sound/openal_test2.cxx +++ b/simgear/sound/openal_test2.cxx @@ -11,6 +11,7 @@ #include "soundmgr_openal.hxx" +SGGeod pos = SGGeod::fromDeg(0,0); int main( int argc, char *argv[] ) { SGSampleGroup *sgr; @@ -22,7 +23,7 @@ int main( int argc, char *argv[] ) { smgr->init(); sgr = smgr->find("default", true); smgr->set_volume(0.9); - smgr->set_position( SGVec3d::fromGeod(SGGeod::fromDeg(0,0)) ); + smgr->set_position( SGVec3d::fromGeod(pos), pos ); smgr->activate(); SGSoundSample *sample1 = new SGSoundSample( SRC_DIR, "jet.wav" );