Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$

misc.h

Go to the documentation of this file.
00001 /*
00002  * misc.h
00003  * Copyright 2010 John Lindgren
00004  *
00005  * This file is part of Audacious.
00006  *
00007  * Audacious is free software: you can redistribute it and/or modify it under
00008  * the terms of the GNU General Public License as published by the Free Software
00009  * Foundation, version 2 or version 3 of the License.
00010  *
00011  * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY
00012  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00013  * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License along with
00016  * Audacious. If not, see <http://www.gnu.org/licenses/>.
00017  *
00018  * The Audacious team does not consider modular code linking to Audacious or
00019  * using our public API to be a derived work.
00020  */
00021 
00022 #ifndef AUDACIOUS_MISC_H
00023 #define AUDACIOUS_MISC_H
00024 
00025 #include <glib.h>
00026 #include <audacious/api.h>
00027 #include <audacious/types.h>
00028 #include <libaudcore/vfs.h>
00029 #include <libaudcore/tuple.h>
00030 
00031 enum {
00032  AUDACIOUS_MENU_MAIN,
00033  AUDACIOUS_MENU_PLAYLIST,
00034  AUDACIOUS_MENU_PLAYLIST_RCLICK,
00035  AUDACIOUS_MENU_PLAYLIST_ADD,
00036  AUDACIOUS_MENU_PLAYLIST_REMOVE,
00037  AUDACIOUS_MENU_PLAYLIST_SELECT,
00038  AUDACIOUS_MENU_PLAYLIST_MISC,
00039  TOTAL_PLUGIN_MENUS};
00040 
00041 typedef struct {
00042     gchar * name;
00043     gfloat preamp, bands[10];
00044 } EqualizerPreset;
00045 
00046 typedef struct {
00047         const gchar * name, * ext;
00048         void (* plc_read) (const gchar * filename, gint at);
00049         void (* plc_write) (const gchar * filename, gint at);
00050 } PlaylistContainer;
00051 
00052 typedef gint16 VisFreqData[2][256];
00053 typedef gint16 VisPCMData[2][512];
00054 
00055 typedef struct {
00056     gint time, nch;
00057     gint length; /* obsolete, always 512 */
00058     VisPCMData data;
00059 } VisNode;
00060 
00061 typedef void (* VisHookFunc) (const VisNode * node, void * user);
00062 
00063 #define AUD_API_NAME MiscAPI
00064 #define AUD_API_SYMBOL misc_api
00065 
00066 #ifdef _AUDACIOUS_CORE
00067 
00068 #include "api-local-begin.h"
00069 #include "misc-api.h"
00070 #include "api-local-end.h"
00071 
00072 #define create_widgets(b, w, a) create_widgets_with_domain (b, w, a, PACKAGE)
00073 
00074 #else
00075 
00076 #include <audacious/api-define-begin.h>
00077 #include <audacious/misc-api.h>
00078 #include <audacious/api-define-end.h>
00079 
00080 #include <audacious/api-alias-begin.h>
00081 #include <audacious/misc-api.h>
00082 #include <audacious/api-alias-end.h>
00083 
00084 #define aud_create_widgets(b, w, a) aud_create_widgets_with_domain (b, w, a, \
00085  PACKAGE)
00086 
00087 #endif
00088 
00089 #undef AUD_API_NAME
00090 #undef AUD_API_SYMBOL
00091 
00092 #endif
00093 
00094 #ifdef AUD_API_DECLARE
00095 
00096 #define AUD_API_NAME MiscAPI
00097 #define AUD_API_SYMBOL misc_api
00098 
00099 #include "api-define-begin.h"
00100 #include "misc-api.h"
00101 #include "api-define-end.h"
00102 
00103 #include "api-declare-begin.h"
00104 #include "misc-api.h"
00105 #include "api-declare-end.h"
00106 
00107 #undef AUD_API_NAME
00108 #undef AUD_API_SYMBOL
00109 
00110 #endif