Mercurial > audlegacy-plugins
view src/filewriter/filewriter.h @ 1017:2f0b7056f354 trunk
[svn] - returning -1 is invalid here for fsize(). make metadata display in Audacious.
author | nenolod |
---|---|
date | Fri, 11 May 2007 09:41:34 -0700 |
parents | 4a693f5b7054 |
children | 1b52e7eacd4c |
line wrap: on
line source
/* FileWriter-Plugin * (C) copyright 2007 merging of Disk Writer and Out-Lame by Michael Färber * * Original Out-Lame-Plugin: * (C) copyright 2002 Lars Siebold <khandha5@gmx.net> * (C) copyright 2006-2007 porting to audacious by Yoshiki Yazawa <yaz@cc.rim.or.jp> * * 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. */ #ifndef FILEWRITER_H #define FILEWRITER_H #include "config.h" #include <gtk/gtk.h> #include <stdio.h> #include <string.h> #include <audacious/plugin.h> #include <audacious/playlist.h> #include <audacious/configdb.h> #include <audacious/i18n.h> #include <audacious/util.h> #include <audacious/vfs.h> struct format_info { AFormat format; int frequency; int channels; } input; extern VFSFile *output_file; extern guint64 written; extern guint64 offset; extern TitleInput *tuple; typedef struct _FileWriter FileWriter; struct _FileWriter { void (*init)(void); void (*configure)(void); gint (*open)(void); void (*write)(void *ptr, gint length); void (*close)(void); gint (*free)(void); gint (*playing)(void); gint (*get_written_time)(void); }; #endif