]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test2.cxx
Make SGPath cache stat() information, cheers Fred
[simgear.git] / simgear / sound / openal_test2.cxx
index c28957b8cc23363b68e452615f11373c00b46a9c..eb0da57e5007ccdd98a3b9c361da446156b3ee37 100644 (file)
@@ -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" );