]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.hxx
Pass current-dir down through XMLSound
[simgear.git] / simgear / sound / sample_openal.hxx
index 362915b0929d3808391b0f6df9148665d74f03b1..b2afba4f33fd1da89f138e491b038e115d0625dc 100644 (file)
@@ -35,6 +35,7 @@
 #endif
 
 #include <string>
+#include <cstdlib>
 
 #include <simgear/compiler.h>
 #include <simgear/debug/logstream.hxx>
@@ -42,6 +43,7 @@
 #include <simgear/structure/SGSharedPtr.hxx>
 #include <simgear/math/SGMath.hxx>
 
+class SGPath;
 
 /**
  * manages everything we need to know for an individual audio sample
@@ -58,11 +60,10 @@ public:
 
     /**
      * Constructor
-     * @param path Path name to sound
      * @param file File name of sound
        Buffer data is freed by the sample group
      */
-    SGSoundSample( const char *path, const char *file );
+    SGSoundSample(const char *file, const SGPath& currentDir);
 
     /**
      * Constructor.
@@ -89,6 +90,8 @@ public:
      */
     inline bool is_file() const { return _is_file; }
 
+    SGPath file_path() const;
+
     /**
      * Test if this audio sample configuration has changed since the last call.
      * Calling this function will reset the flag so calling it a second