]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test3.cxx
hla: Provide a directly property based api for property data element.
[simgear.git] / simgear / sound / openal_test3.cxx
index 96a57a0460a9814eb26725d92be4391ca53240f1..fafb404538bd1bfbe43bb78b799ddaffcb65d54d 100644 (file)
@@ -25,8 +25,10 @@ int main( int argc, char *argv[] ) {
     smgr->set_volume(0.9);
     smgr->activate();
 
+    SGPath srcDir(SRC_DIR);
+
     printf("default position and orientation\n");
-    SGSoundSample *sample1 = new SGSoundSample( SRC_DIR, "jet.wav" );
+    SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);
     sample1->set_volume(1.0);
     sample1->set_pitch(1.0);
     sample1->play_looped();