]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
Fixes for headless mode.
[simgear.git] / simgear / sound / sample_openal.cxx
index 022cb40dc99bdaf4d0da06079d4d3f1e8e8d3a59..3c9cb864ad81403fc1d06794c3722046bde1d35f 100644 (file)
@@ -79,7 +79,7 @@ SGSoundSample::SGSoundSample() :
 }
 
 // constructor
-SGSoundSample::SGSoundSample( const char *path, const char *file ) :
+SGSoundSample::SGSoundSample(const char *file, const SGPath& currentDir) :
     _absolute_pos(SGVec3d::zeros()),
     _relative_pos(SGVec3d::zeros()),
     _direction(SGVec3d::zeros()),
@@ -111,7 +111,7 @@ SGSoundSample::SGSoundSample( const char *path, const char *file ) :
     _static_changed(true),
     _is_file(true)
 {
-    SGPath p = simgear::ResourceManager::instance()->findPath(file);
+    SGPath p = simgear::ResourceManager::instance()->findPath(file, currentDir);
     _refname = p.str();
 }