# HG changeset patch # User nenolod # Date 1148184540 25200 # Node ID ecdd6a7cafed799253b782bd00d67390492d63da # Parent 09eb2c83097a18ea6b6dad43b2547eb844978507 [svn] - more stuff diff -r 09eb2c83097a -r ecdd6a7cafed Plugins/Input/mpg123/interface.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Plugins/Input/mpg123/interface.c Sat May 20 21:09:00 2006 -0700 @@ -0,0 +1,33 @@ +/* + * libmpgdec: An advanced MPEG 1/2/3 decoder engine. + * interface.c: library interfaces + * + * Copyright (c) 2005-2006 William Pitcock + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "common.h" + +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; +} diff -r 09eb2c83097a -r ecdd6a7cafed Plugins/Input/mpg123/mpg123.h --- a/Plugins/Input/mpg123/mpg123.h Sat May 20 20:36:10 2006 -0700 +++ b/Plugins/Input/mpg123/mpg123.h Sat May 20 21:09:00 2006 -0700 @@ -185,6 +185,10 @@ extern MPG123Config mpg123_cfg; +struct mpgdec_instance { + void (*dump_audio)(struct frame *fr); +}; + struct bitstream_info { int bitindex; unsigned char *wordpointer; @@ -192,6 +196,8 @@ extern struct bitstream_info bsi; +typedef struct mpgdec_instance mpgdec_t; + struct mpstr { int bsize; int framesize;