1 | /*
|
---|
2 | * FAAC - Freeware Advanced Audio Coder
|
---|
3 | * Copyright (C) 2001 Menno Bakker
|
---|
4 | *
|
---|
5 | * This library is free software; you can redistribute it and/or
|
---|
6 | * modify it under the terms of the GNU Lesser General Public
|
---|
7 | * License as published by the Free Software Foundation; either
|
---|
8 | * version 2.1 of the License, or (at your option) any later version.
|
---|
9 | *
|
---|
10 | * This library is distributed in the hope that it will be useful,
|
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
13 | * Lesser General Public License for more details.
|
---|
14 |
|
---|
15 | * You should have received a copy of the GNU Lesser General Public
|
---|
16 | * License along with this library; if not, write to the Free Software
|
---|
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
18 | *
|
---|
19 | * $Id: faac.h,v 1.33 2004/07/04 12:12:05 corrados Exp $
|
---|
20 | */
|
---|
21 |
|
---|
22 | #ifndef _FAAC_H_
|
---|
23 | #define _FAAC_H_
|
---|
24 |
|
---|
25 | #ifdef __cplusplus
|
---|
26 | extern "C" {
|
---|
27 | #endif /* __cplusplus */
|
---|
28 |
|
---|
29 | #ifdef WIN32
|
---|
30 | # ifndef FAACAPI
|
---|
31 | # define FAACAPI __stdcall
|
---|
32 | # endif
|
---|
33 | #else
|
---|
34 | # ifndef FAACAPI
|
---|
35 | # define FAACAPI
|
---|
36 | # endif
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #pragma pack(push, 1)
|
---|
40 |
|
---|
41 | typedef struct {
|
---|
42 | void *ptr;
|
---|
43 | char *name;
|
---|
44 | }
|
---|
45 | psymodellist_t;
|
---|
46 |
|
---|
47 | #include "faaccfg.h"
|
---|
48 |
|
---|
49 |
|
---|
50 | typedef void *faacEncHandle;
|
---|
51 |
|
---|
52 | #ifndef HAVE_INT32_T
|
---|
53 | typedef int int32_t;
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | /*
|
---|
57 | Allows an application to get FAAC version info. This is intended
|
---|
58 | purely for informative purposes.
|
---|
59 |
|
---|
60 | Returns FAAC_CFG_VERSION.
|
---|
61 | */
|
---|
62 | int FAACAPI faacEncGetVersion(char **faac_id_string,
|
---|
63 | char **faac_copyright_string);
|
---|
64 |
|
---|
65 |
|
---|
66 | faacEncConfigurationPtr FAACAPI
|
---|
67 | faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
|
---|
68 |
|
---|
69 |
|
---|
70 | int FAACAPI faacEncSetConfiguration(faacEncHandle hEncoder,
|
---|
71 | faacEncConfigurationPtr config);
|
---|
72 |
|
---|
73 |
|
---|
74 | faacEncHandle FAACAPI faacEncOpen(unsigned long sampleRate,
|
---|
75 | unsigned int numChannels,
|
---|
76 | unsigned long *inputSamples,
|
---|
77 | unsigned long *maxOutputBytes);
|
---|
78 |
|
---|
79 |
|
---|
80 | int FAACAPI faacEncGetDecoderSpecificInfo(faacEncHandle hEncoder, unsigned char **ppBuffer,
|
---|
81 | unsigned long *pSizeOfDecoderSpecificInfo);
|
---|
82 |
|
---|
83 |
|
---|
84 | int FAACAPI faacEncEncode(faacEncHandle hEncoder, int32_t * inputBuffer, unsigned int samplesInput,
|
---|
85 | unsigned char *outputBuffer,
|
---|
86 | unsigned int bufferSize);
|
---|
87 |
|
---|
88 |
|
---|
89 | int FAACAPI faacEncClose(faacEncHandle hEncoder);
|
---|
90 |
|
---|
91 |
|
---|
92 |
|
---|
93 | #pragma pack(pop)
|
---|
94 |
|
---|
95 | #ifdef __cplusplus
|
---|
96 | }
|
---|
97 | #endif /* __cplusplus */
|
---|
98 |
|
---|
99 | #endif /* _FAAC_H_ */
|
---|