]> 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 70260289a38f3b60f3495c2b6ae55088c41e81fa..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("jet.wav", SRC_DIR);
+    SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);
     sample1->set_volume(1.0);
     sample1->set_pitch(1.0);
     sample1->play_looped();