Mercurial > audlegacy-plugins
comparison src/Input/mpg123/interface.c @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
| author | nenolod |
|---|---|
| date | Mon, 18 Sep 2006 01:11:49 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:13389e613d67 |
|---|---|
| 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 | |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 21 */ | |
| 22 | |
| 23 #include "common.h" | |
| 24 | |
| 25 static const long outscale = 32768; | |
| 26 | |
| 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; | |
| 35 | |
| 36 mpgdec_make_decode_tables(outscale); | |
| 37 psycho_init(); | |
| 38 | |
| 39 return ins; | |
| 40 } |
