Mercurial > audlegacy-plugins
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Input/mpg123/interface.c Mon Sep 18 01:11:49 2006 -0700 @@ -0,0 +1,40 @@ +/* + * libmpgdec: An advanced MPEG 1/2/3 decoder engine. + * interface.c: library interfaces + * + * Copyright (c) 2005-2006 William Pitcock <nenolod@nenolod.net> + * Portions copyright (C) 1999 Michael Hipp + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "common.h" + +static const long outscale = 32768; + +mpgdec_t *global_ins; + +mpgdec_t *mpgdec_new(void) +{ + mpgdec_t *ins = g_malloc0(sizeof(mpgdec_t)); + + /* yeah i know this is cheating */ + global_ins = ins; + + mpgdec_make_decode_tables(outscale); + psycho_init(); + + return ins; +}
