00001 /* 00002 * types.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_TYPES_H 00023 #define AUDACIOUS_TYPES_H 00024 00025 #include <glib.h> 00026 00027 #define AUD_EQUALIZER_NBANDS 10 00028 #define EQUALIZER_MAX_GAIN 12 00029 00030 enum { 00031 PLUGIN_TYPE_TRANSPORT, 00032 PLUGIN_TYPE_PLAYLIST, 00033 PLUGIN_TYPE_INPUT, 00034 PLUGIN_TYPE_EFFECT, 00035 PLUGIN_TYPE_OUTPUT, 00036 PLUGIN_TYPE_VIS, 00037 PLUGIN_TYPE_GENERAL, 00038 PLUGIN_TYPE_IFACE, 00039 PLUGIN_TYPES}; 00040 00041 typedef struct PluginHandle PluginHandle; 00042 00043 typedef const struct _Plugin Plugin; 00044 typedef const struct _TransportPlugin TransportPlugin; 00045 typedef const struct _PlaylistPlugin PlaylistPlugin; 00046 typedef const struct _InputPlugin InputPlugin; 00047 typedef const struct _EffectPlugin EffectPlugin; 00048 typedef const struct _OutputPlugin OutputPlugin; 00049 typedef const struct _VisPlugin VisPlugin; 00050 typedef const struct _GeneralPlugin GeneralPlugin; 00051 typedef const struct _IfacePlugin IfacePlugin; 00052 00053 typedef struct _PluginPreferences PluginPreferences; 00054 typedef struct _PreferencesWidget PreferencesWidget; 00055 00056 typedef struct { 00057 gfloat track_gain; /* dB */ 00058 gfloat track_peak; /* 0-1 */ 00059 gfloat album_gain; /* dB */ 00060 gfloat album_peak; /* 0-1 */ 00061 } ReplayGainInfo; 00062 00063 #endif