1 /* Copyright (C) 2004 CSIRO Australia */
2 /* Copyright (C) 2002 Jean-Marc Valin*/
3 /**
4   @file speex_noglobals.h
5   @brief Dynamically allocates the different modes of the codec
6 */
7 /*
8    Redistribution and use in source and binary forms, with or without
9    modification, are permitted provided that the following conditions
10    are met:
11 
12    - Redistributions of source code must retain the above copyright
13    notice, this list of conditions and the following disclaimer.
14 
15    - Redistributions in binary form must reproduce the above copyright
16    notice, this list of conditions and the following disclaimer in the
17    documentation and/or other materials provided with the distribution.
18 
19    - Neither the name of the Xiph.org Foundation nor the names of its
20    contributors may be used to endorse or promote products derived from
21    this software without specific prior written permission.
22 
23    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
27    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 
35 */
36 
37 #ifndef SPEEX_NOGLOBALS_H
38 #define SPEEX_NOGLOBALS_H
39 
40 /* See README.symbian in the Speex source distribution for information
41  * on using this API */
42 
43 typedef struct SpeexMode SpeexMode;
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /** Instantiate a mode */
50 const SpeexMode * speex_mode_new (int modeID);
51 
52 /** Destroy a mode */
53 void speex_mode_destroy (const SpeexMode * mode);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 
60 #endif
61