]> git.tdb.fi Git - libs/al.git/blobdiff - source/format.h
Add utility functions for manipulating formats
[libs/al.git] / source / format.h
index 624fb60591fd1e86d67b1c1c6859dcda99ebd18f..4895377c062a7a45d39dc9747d9b8dc971add530 100644 (file)
@@ -1,14 +1,7 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Diestributed under the LGPL
-*/
-
 #ifndef MSP_AL_FORMAT_H_
 #define MSP_AL_FORMAT_H_
 
-#include <AL/al.h>
+#include "al.h"
 
 namespace Msp {
 namespace AL {
@@ -21,6 +14,12 @@ enum Format
        STEREO16 = AL_FORMAT_STEREO16
 };
 
+Format create_format(unsigned, unsigned);
+
+unsigned get_sample_size(Format);
+unsigned get_n_channels(Format);
+unsigned get_unit_size(Format);
+
 } // namespace AL
 } // namespace Msp