]> git.tdb.fi Git - libs/al.git/blobdiff - source/sound.h
Update Build file with new builder features
[libs/al.git] / source / sound.h
index a97de4623f9704bcdf0003733c683ea6b2edb915..60bdf456319d4cf3298d74176c879aa62adb13fe 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_AL_SOUND_H_
 #define MSP_AL_SOUND_H_
 
@@ -15,6 +8,10 @@ Distributed under the LGPL
 namespace Msp {
 namespace AL {
 
+/**
+This class facilitates loading sound files.  Currently only Ogg Vorbis is
+supported.
+*/
 class Sound
 {
 private:
@@ -32,6 +29,9 @@ public:
 
        void open_file(const std::string &);
        void open_memory(const void *, unsigned);
+private:
+       void open_common();
+public:
        void load_data();
        void load_file(const std::string &);
        void load_memory(const void *, unsigned);
@@ -44,8 +44,6 @@ public:
        unsigned get_frequency() const { return freq; }
        unsigned get_size() const { return size; }
        const char *get_data() const;
-private:
-       void open_common();
 };
 
 } // namespace AL