From: ehofman Date: Tue, 3 Nov 2009 10:16:46 +0000 (+0000) Subject: adjust to recent changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=346a22f684eb900f56b9d862c9fbd2010219d4ec;p=simgear.git adjust to recent changes --- 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");