annotate src/flac/libflac/FLAC/export.h @ 997:e46b98155d5d trunk

[svn] - fix a bug which counts number of frames twice in handling xing header. - now fileinfo dialog calculates play length even though TLEN tag exists so that it can overwrite wrong TLEN tag.
author yaz
date Tue, 01 May 2007 12:49:27 -0700
parents 454ad11020ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
715
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
1 /* libFLAC - Free Lossless Audio Codec library
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
2 * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
3 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
4 * Redistribution and use in source and binary forms, with or without
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
5 * modification, are permitted provided that the following conditions
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
6 * are met:
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
7 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
8 * - Redistributions of source code must retain the above copyright
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
9 * notice, this list of conditions and the following disclaimer.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
10 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
11 * - Redistributions in binary form must reproduce the above copyright
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
12 * notice, this list of conditions and the following disclaimer in the
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
13 * documentation and/or other materials provided with the distribution.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
14 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
15 * - Neither the name of the Xiph.org Foundation nor the names of its
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
16 * contributors may be used to endorse or promote products derived from
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
17 * this software without specific prior written permission.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
18 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
27 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
30 */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
31
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
32 #ifndef FLAC__EXPORT_H
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
33 #define FLAC__EXPORT_H
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
34
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
35 /** \file include/FLAC/export.h
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
36 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
37 * \brief
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
38 * This module contains #defines and symbols for exporting function
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
39 * calls, and providing version information and compiled-in features.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
40 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
41 * See the \link flac_export export \endlink module.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
42 */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
43
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
44 /** \defgroup flac_export FLAC/export.h: export symbols
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
45 * \ingroup flac
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
46 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
47 * \brief
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
48 * This module contains #defines and symbols for exporting function
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
49 * calls, and providing version information and compiled-in features.
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
50 *
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
51 * \{
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
52 */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
53
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
54 #if defined(FLAC__NO_DLL) || !defined(_MSC_VER)
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
55 #define FLAC_API
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
56
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
57 #else
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
58
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
59 #ifdef FLAC_API_EXPORTS
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
60 #define FLAC_API _declspec(dllexport)
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
61 #else
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
62 #define FLAC_API _declspec(dllimport)
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
63
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
64 #endif
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
65 #endif
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
66
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
67 /** These #defines will mirror the libtool-based library version number, see
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
68 * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
69 */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
70 #define FLAC_API_VERSION_CURRENT 8
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
71 #define FLAC_API_VERSION_REVISION 1 /**< see above */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
72 #define FLAC_API_VERSION_AGE 0 /**< see above */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
73
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
74 #ifdef __cplusplus
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
75 extern "C" {
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
76 #endif
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
77
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
78 /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
79 extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC;
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
80
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
81 #ifdef __cplusplus
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
82 }
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
83 #endif
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
84
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
85 /* \} */
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
86
a9b178bc4ae4 [svn] Import flac. Please test.
js
parents:
diff changeset
87 #endif