export range markers patch (revisited), change selection model, copy-drag tempo+meter...
[ardour.git] / libs / ardour / ardour / sndfile_helpers.h
1 #ifndef __sndfile_helpers_h__
2 #define __sndfile_helpers_h__
3
4 #include <string>
5
6 using std::string;
7
8 // Use this define when initializing arrarys for use in sndfile_*_format()
9 #define SNDFILE_STR_LENGTH 32
10
11 #define SNDFILE_HEADER_FORMATS 7
12 extern const char * const sndfile_header_formats_strings[SNDFILE_HEADER_FORMATS+1];
13 extern const char * const sndfile_file_endings_strings[SNDFILE_HEADER_FORMATS+1];
14
15 extern int sndfile_header_formats[SNDFILE_HEADER_FORMATS];
16
17 #define SNDFILE_BITDEPTH_FORMATS 5
18 extern const char * const sndfile_bitdepth_formats_strings[SNDFILE_BITDEPTH_FORMATS+1];
19
20 extern int sndfile_bitdepth_formats[SNDFILE_BITDEPTH_FORMATS];
21
22 #define SNDFILE_ENDIAN_FORMATS 2
23 extern const char * const sndfile_endian_formats_strings[SNDFILE_ENDIAN_FORMATS+1];
24
25 extern int sndfile_endian_formats[SNDFILE_ENDIAN_FORMATS];
26
27 int sndfile_bitdepth_format_from_string(string);
28 int sndfile_header_format_from_string(string);
29 int sndfile_endian_format_from_string(string);
30 string sndfile_file_ending_from_string(string);
31
32 int sndfile_data_width (int format);
33
34 // It'd be nice if libsndfile did this for us
35 string sndfile_major_format(int);
36 string sndfile_minor_format(int);
37
38 #endif /* __sndfile_helpers_h__ */