]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.hxx
Initial work on making OpenAL private to the sound code.
[simgear.git] / simgear / sound / sample_openal.hxx
index 35aabab9afce766fe801ca9d3a27985825dd700a..706fa8d07383106ccf8bfe13667ac9d03f8180a2 100644 (file)
 #ifndef _SG_SAMPLE_HXX
 #define _SG_SAMPLE_HXX 1
 
-#ifndef __cplusplus
-# error This library requires C++
-#endif
-
 #include <string>
-#include <cstdlib>
 
 #include <simgear/compiler.h>
-#include <simgear/debug/logstream.hxx>
 #include <simgear/structure/SGReferenced.hxx>
 #include <simgear/structure/SGSharedPtr.hxx>
 #include <simgear/math/SGMath.hxx>
-
+     
 class SGPath;
 
+#ifndef AL_FORMAT_MONO8
+     #define AL_FORMAT_MONO8    0x1100
+#endif
+
 /**
  * manages everything we need to know for an individual audio sample
  */
@@ -85,7 +84,7 @@ public:
     virtual ~SGSoundSample ();
 
     /**
-     * Detect wheter this audio sample holds the information of a sound file.
+     * Detect whether this audio sample holds the information of a sound file.
      * @return Return true if this audio sample is to be constructed from a file.
      */
     inline bool is_file() const { return _is_file; }
@@ -103,7 +102,7 @@ public:
     }
 
     /**
-     * Test if static dataa of audio sample configuration has changed.
+     * Test if static data of audio sample configuration has changed.
      * Calling this function will reset the flag so calling it a second
      * time in a row will return false.
      * @return Return true is the static data has changed in the mean time.
@@ -514,7 +513,7 @@ private:
     bool _out_of_range;
     bool _is_file;
 
-    string random_string();
+    std::string random_string();
 };