Mercurial > pidgin.yaz
annotate src/mediastreamer/msspeexenc.h @ 12882:e1603fd610fa
[gaim-migrate @ 15234]
I give you perl /cmd support. I only tested this a little bit but it seemed to
work for me, let me know if anything breaks.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Sun, 15 Jan 2006 07:56:58 +0000 |
parents | fc464a0abccc |
children |
rev | line source |
---|---|
12024 | 1 /* |
2 The mediastreamer library aims at providing modular media processing and I/O | |
3 for linphone, but also for any telephony application. | |
4 Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org | |
5 | |
6 This library is free software; you can redistribute it and/or | |
7 modify it under the terms of the GNU Lesser General Public | |
8 License as published by the Free Software Foundation; either | |
9 version 2.1 of the License, or (at your option) any later version. | |
10 | |
11 This library is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 Lesser General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU Lesser General Public | |
17 License along with this library; if not, write to the Free Software | |
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 */ | |
20 | |
21 | |
22 #ifndef MSSPEEXENC_H | |
23 #define MSSPEEXENC_H | |
24 | |
25 #include <mscodec.h> | |
26 #include <speex.h> | |
27 | |
28 struct _MSSpeexEnc | |
29 { | |
30 MSFilter parent; | |
31 MSFifo *inf[1]; | |
32 MSQueue *outq[1]; /* speex has an output q because it can be variable bit rate */ | |
33 void *speex_state; | |
34 SpeexBits bits; | |
35 int frequency; | |
36 int bitrate; | |
37 int initialized; | |
38 }; | |
39 | |
40 typedef struct _MSSpeexEnc MSSpeexEnc; | |
41 | |
42 | |
43 struct _MSSpeexEncClass | |
44 { | |
45 MSFilterClass parent; | |
46 }; | |
47 | |
48 typedef struct _MSSpeexEncClass MSSpeexEncClass; | |
49 | |
50 | |
51 #define MS_SPEEX_ENC(o) ((MSSpeexEnc*)(o)) | |
52 #define MS_SPEEX_ENC_CLASS(o) ((MSSpeexEncClass*)(o)) | |
53 | |
54 /* generic constructor */ | |
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
12024
diff
changeset
|
55 MSFilter * ms_speex_enc_new(void); |
12024 | 56 |
57 void ms_speex_enc_init_core(MSSpeexEnc *obj,const SpeexMode *mode, gint quality); | |
58 void ms_speex_enc_uninit_core(MSSpeexEnc *obj); | |
59 void ms_speex_enc_init(MSSpeexEnc *obj); | |
60 void ms_speex_enc_class_init(MSSpeexEncClass *klass); | |
61 | |
62 | |
63 void ms_speex_enc_process(MSSpeexEnc *obj); | |
64 void ms_speex_enc_destroy(MSSpeexEnc *obj); | |
65 | |
66 #endif |