Mercurial > audlegacy
changeset 1091:ecdd6a7cafed trunk
[svn] - more stuff
author | nenolod |
---|---|
date | Sat, 20 May 2006 21:09:00 -0700 |
parents | 09eb2c83097a |
children | 5b6fcb22f3c4 |
files | Plugins/Input/mpg123/interface.c Plugins/Input/mpg123/mpg123.h |
diffstat | 2 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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 <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., 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; +}
--- 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;