12024
|
1 /*
|
|
2 Copyright (C) 2003 Robert W. Brewer <rbrewer at op.net>
|
|
3
|
|
4 This library is free software; you can redistribute it and/or
|
|
5 modify it under the terms of the GNU Lesser General Public
|
|
6 License as published by the Free Software Foundation; either
|
|
7 version 2.1 of the License, or (at your option) any later version.
|
|
8
|
|
9 This library is distributed in the hope that it will be useful,
|
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12 Lesser General Public License for more details.
|
|
13
|
|
14 You should have received a copy of the GNU Lesser General Public
|
|
15 License along with this library; if not, write to the Free Software
|
|
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
17 */
|
|
18
|
|
19
|
|
20 #ifndef MSTRUESPEECHDECODER_H
|
|
21 #define MSTRUESPEECHDECODER_H
|
|
22
|
|
23 #include "msfilter.h"
|
|
24 #include "mstruespeechencoder.h"
|
|
25
|
|
26
|
|
27
|
|
28 typedef struct _MSTrueSpeechDecoder
|
|
29 {
|
|
30 /* the MSTrueSpeechDecoder derives from MSFilter, so the MSFilter
|
|
31 object MUST be the first of the MSTrueSpeechDecoder object
|
|
32 in order for the object mechanism to work*/
|
|
33 MSFilter filter;
|
|
34 MSFifo *f_inputs[MS_TRUESPEECH_CODEC_MAX_IN_OUT];
|
|
35 MSFifo *f_outputs[MS_TRUESPEECH_CODEC_MAX_IN_OUT];
|
|
36 Win32Codec* codec;
|
|
37 } MSTrueSpeechDecoder;
|
|
38
|
|
39 typedef struct _MSTrueSpeechDecoderClass
|
|
40 {
|
|
41 /* the MSTrueSpeechDecoder derives from MSFilter,
|
|
42 so the MSFilter class MUST be the first of the MSTrueSpechDecoder
|
|
43 class
|
|
44 in order for the class mechanism to work*/
|
|
45 MSFilterClass parent_class;
|
|
46 Win32CodecDriver* driver;
|
|
47 } MSTrueSpeechDecoderClass;
|
|
48
|
|
49 /* PUBLIC */
|
|
50 #define MS_TRUESPEECHDECODER(filter) ((MSTrueSpechMDecoder*)(filter))
|
|
51 #define MS_TRUESPEECHDECODER_CLASS(klass) ((MSTrueSpeechDecoderClass*)(klass))
|
|
52 MSFilter * ms_truespeechdecoder_new(void);
|
|
53
|
|
54
|
|
55 #endif
|