| audiofile.h | | audiofile.h | |
| /* | | /* | |
| Audio File Library | | Audio File Library | |
|
| Copyright (C) 1998-2000, 2010-2013, Michael Pruett <michael@68k.org> | | Copyright (C) 1998-2000, 2010-2013 Michael Pruett <michael@68k.org> | |
| | | | |
| This library is free software; you can redistribute it and/or | | This library is free software; you can redistribute it and/or | |
|
| modify it under the terms of the GNU Library General Public | | modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | | License as published by the Free Software Foundation; either | |
|
| version 2 of the License, or (at your option) any later version. | | version 2.1 of the License, or (at your option) any later version. | |
| | | | |
| This library is distributed in the hope that it will be useful, | | This library is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
|
| Library General Public License for more details. | | Lesser General Public License for more details. | |
| | | | |
|
| You should have received a copy of the GNU Library General Public | | You should have received a copy of the GNU Lesser General Public | |
| License along with this library; if not, write to the | | License along with this library; if not, write to the | |
|
| Free Software Foundation, Inc., 59 Temple Place - Suite 330, | | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
| Boston, MA 02111-1307 USA. | | Boston, MA 02110-1301 USA | |
| */ | | */ | |
| | | | |
| /* | | /* | |
| audiofile.h | | audiofile.h | |
| | | | |
| This file contains the public interfaces to the Audio File Library. | | This file contains the public interfaces to the Audio File Library. | |
| */ | | */ | |
| | | | |
| #ifndef AUDIOFILE_H | | #ifndef AUDIOFILE_H | |
| #define AUDIOFILE_H | | #define AUDIOFILE_H | |
| | | | |
| #include <aupvlist.h> | | #include <aupvlist.h> | |
| #include <stdint.h> | | #include <stdint.h> | |
| #include <sys/types.h> | | #include <sys/types.h> | |
| | | | |
| #define LIBAUDIOFILE_MAJOR_VERSION 0 | | #define LIBAUDIOFILE_MAJOR_VERSION 0 | |
| #define LIBAUDIOFILE_MINOR_VERSION 3 | | #define LIBAUDIOFILE_MINOR_VERSION 3 | |
|
| #define LIBAUDIOFILE_MICRO_VERSION 5 | | #define LIBAUDIOFILE_MICRO_VERSION 6 | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
| #if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__) | | #if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__) | |
| #define AFAPI __attribute__((visibility("default"))) | | #define AFAPI __attribute__((visibility("default"))) | |
| #else | | #else | |
| #define AFAPI | | #define AFAPI | |
| #endif | | #endif | |
| | | | |
| skipping to change at line 117 | | skipping to change at line 117 | |
| AF_FILE_IRCAM = AF_FILE_BICSF, | | AF_FILE_IRCAM = AF_FILE_BICSF, | |
| AF_FILE_MPEG1BITSTREAM = 6, /* not implemented */ | | AF_FILE_MPEG1BITSTREAM = 6, /* not implemented */ | |
| AF_FILE_SOUNDDESIGNER1 = 7, /* not implemented */ | | AF_FILE_SOUNDDESIGNER1 = 7, /* not implemented */ | |
| AF_FILE_SOUNDDESIGNER2 = 8, /* not implemented */ | | AF_FILE_SOUNDDESIGNER2 = 8, /* not implemented */ | |
| AF_FILE_AVR = 9, | | AF_FILE_AVR = 9, | |
| AF_FILE_IFF_8SVX = 10, | | AF_FILE_IFF_8SVX = 10, | |
| AF_FILE_SAMPLEVISION = 11, | | AF_FILE_SAMPLEVISION = 11, | |
| AF_FILE_VOC = 12, | | AF_FILE_VOC = 12, | |
| AF_FILE_NIST_SPHERE = 13, | | AF_FILE_NIST_SPHERE = 13, | |
| AF_FILE_SOUNDFONT2 = 14, /* not implemented */ | | AF_FILE_SOUNDFONT2 = 14, /* not implemented */ | |
|
| AF_FILE_CAF = 15 | | AF_FILE_CAF = 15, | |
| | | AF_FILE_FLAC = 16 | |
| }; | | }; | |
| | | | |
| enum | | enum | |
| { | | { | |
| AF_LOOP_MODE_NOLOOP = 0, | | AF_LOOP_MODE_NOLOOP = 0, | |
| AF_LOOP_MODE_FORW = 1, | | AF_LOOP_MODE_FORW = 1, | |
| AF_LOOP_MODE_FORWBAKW = 2 | | AF_LOOP_MODE_FORWBAKW = 2 | |
| }; | | }; | |
| | | | |
| enum | | enum | |
| | | | |
| skipping to change at line 205 | | skipping to change at line 206 | |
| AF_COMPRESSION_APPLE_MAC3 = 506, | | AF_COMPRESSION_APPLE_MAC3 = 506, | |
| AF_COMPRESSION_APPLE_MAC6 = 507, | | AF_COMPRESSION_APPLE_MAC6 = 507, | |
| | | | |
| AF_COMPRESSION_G726 = 517, | | AF_COMPRESSION_G726 = 517, | |
| AF_COMPRESSION_G728 = 518, | | AF_COMPRESSION_G728 = 518, | |
| AF_COMPRESSION_DVI_AUDIO = 519, | | AF_COMPRESSION_DVI_AUDIO = 519, | |
| AF_COMPRESSION_IMA = AF_COMPRESSION_DVI_AUDIO, | | AF_COMPRESSION_IMA = AF_COMPRESSION_DVI_AUDIO, | |
| AF_COMPRESSION_GSM = 520, | | AF_COMPRESSION_GSM = 520, | |
| AF_COMPRESSION_FS1016 = 521, | | AF_COMPRESSION_FS1016 = 521, | |
| AF_COMPRESSION_DV = 522, | | AF_COMPRESSION_DV = 522, | |
|
| AF_COMPRESSION_MS_ADPCM = 523 | | AF_COMPRESSION_MS_ADPCM = 523, | |
| | | | |
| | | AF_COMPRESSION_FLAC = 530, | |
| | | AF_COMPRESSION_ALAC = 540 | |
| }; | | }; | |
| | | | |
| /* tokens for afQuery() -- see the man page for instructions */ | | /* tokens for afQuery() -- see the man page for instructions */ | |
| /* level 1 selectors */ | | /* level 1 selectors */ | |
| enum | | enum | |
| { | | { | |
| AF_QUERYTYPE_INSTPARAM = 500, | | AF_QUERYTYPE_INSTPARAM = 500, | |
| AF_QUERYTYPE_FILEFMT = 501, | | AF_QUERYTYPE_FILEFMT = 501, | |
| AF_QUERYTYPE_COMPRESSION = 502, | | AF_QUERYTYPE_COMPRESSION = 502, | |
| AF_QUERYTYPE_COMPRESSIONPARAM = 503, | | AF_QUERYTYPE_COMPRESSIONPARAM = 503, | |
| | | | |
End of changes. 9 change blocks. |
| 10 lines changed or deleted | | 14 lines changed or added | |
|