Mercurial > audlegacy
annotate Plugins/Input/mpg123/interface.c @ 1472:04cdccf13105 trunk
[svn] - reset real_ip<InputPlugin *> when we are done with it
author | nenolod |
---|---|
date | Wed, 02 Aug 2006 22:28:10 -0700 |
parents | 705d4c089fce |
children |
rev | line source |
---|---|
1091 | 1 /* |
2 * libmpgdec: An advanced MPEG 1/2/3 decoder engine. | |
3 * interface.c: library interfaces | |
4 * | |
5 * Copyright (c) 2005-2006 William Pitcock <nenolod@nenolod.net> | |
6 * Portions copyright (C) 1999 Michael Hipp | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
1459 | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
1091 | 21 */ |
22 | |
23 #include "common.h" | |
24 | |
1098
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
25 static const long outscale = 32768; |
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
26 |
1091 | 27 mpgdec_t *global_ins; |
28 | |
29 mpgdec_t *mpgdec_new(void) | |
30 { | |
31 mpgdec_t *ins = g_malloc0(sizeof(mpgdec_t)); | |
32 | |
33 /* yeah i know this is cheating */ | |
34 global_ins = ins; | |
1098
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
35 |
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
36 mpgdec_make_decode_tables(outscale); |
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
37 psycho_init(); |
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
38 |
b5ae09a6c2f1
[svn] - prepare to split audacious code away from the actual decoder and use a highlevel API
nenolod
parents:
1091
diff
changeset
|
39 return ins; |
1091 | 40 } |