]> git.tdb.fi Git - libs/al.git/blob - source/format.h
Add utility functions for manipulating formats
[libs/al.git] / source / format.h
1 #ifndef MSP_AL_FORMAT_H_
2 #define MSP_AL_FORMAT_H_
3
4 #include "al.h"
5
6 namespace Msp {
7 namespace AL {
8
9 enum Format
10 {
11         MONO8    = AL_FORMAT_MONO8,
12         MONO16   = AL_FORMAT_MONO16,
13         STEREO8  = AL_FORMAT_STEREO8,
14         STEREO16 = AL_FORMAT_STEREO16
15 };
16
17 Format create_format(unsigned, unsigned);
18
19 unsigned get_sample_size(Format);
20 unsigned get_n_channels(Format);
21 unsigned get_unit_size(Format);
22
23 } // namespace AL
24 } // namespace Msp
25
26 #endif