From 346a22f684eb900f56b9d862c9fbd2010219d4ec Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 3 Nov 2009 10:16:46 +0000 Subject: [PATCH] adjust to recent changes --- simgear/sound/openal_test3.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simgear/sound/openal_test3.cxx b/simgear/sound/openal_test3.cxx index dccbd3d5..9377dcef 100644 --- a/simgear/sound/openal_test3.cxx +++ b/simgear/sound/openal_test3.cxx @@ -22,7 +22,6 @@ int main( int argc, char *argv[] ) { smgr->init(); sgr = smgr->find("default", true); smgr->set_volume(0.9); - smgr->set_position_geod( SGGeod::fromDeg(0,0) ); smgr->activate(); printf("default position and orientation\n"); @@ -39,8 +38,8 @@ int main( int argc, char *argv[] ) { sleep(1); printf("source at lat,lon = (10,-10), listener at (9.99,-9.99)\n"); - sample1->set_position_geod( SGGeod::fromDeg(10,-10) ); - smgr->set_position( SGGeod::fromDeg(9.99,-9.99) ); + sample1->set_position( SGVec3d::fromGeod(SGGeod::fromDeg(10,-10)) ); + smgr->set_position( SGVec3d::fromGeod(SGGeod::fromDeg(9.99,-9.99)) ); sample1->play_looped(); smgr->update(1.0); printf("playing sample\n"); -- 2.39.5