comparison src/crossfade/cfgutil.h @ 3059:2e241e90494a

Import work in progress xmms-crossfade rewrite.
author William Pitcock <nenolod@atheme.org>
date Fri, 24 Apr 2009 05:57:35 -0500
parents
children
comparison
equal deleted inserted replaced
3058:2e649bf16ebc 3059:2e241e90494a
1 /*
2 * XMMS Crossfade Plugin
3 * Copyright (C) 2000-2007 Peter Eisenlohr <peter@eisenlohr.org>
4 *
5 * based on the original OSS Output Plugin
6 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 * USA.
22 */
23
24 #ifndef _CFGUTIL_H_
25 #define _CFGUTIL_H_
26
27 #include "crossfade.h"
28
29 /* configuration load/save functions */
30 void xfade_load_config();
31 void xfade_save_config();
32 void xfade_free_config();
33
34 void xfade_load_plugin_config(gchar *config_string, gchar *plugin_name, plugin_config_t *plugin_config);
35 void xfade_save_plugin_config(gchar **config_string, gchar *plugin_name, plugin_config_t *plugin_confg);
36
37 /* some helper functions */
38 gint xfade_mix_size_ms(config_t * cfg);
39
40 gint xfade_cfg_out_skip (fade_config_t *fc);
41 gint xfade_cfg_fadeout_len (fade_config_t *fc);
42 gint xfade_cfg_fadeout_volume(fade_config_t *fc);
43 gint xfade_cfg_offset (fade_config_t *fc);
44 gint xfade_cfg_in_skip (fade_config_t *fc);
45 gint xfade_cfg_fadein_len (fade_config_t *fc);
46 gint xfade_cfg_fadein_volume (fade_config_t *fc);
47
48 gboolean xfade_cfg_gap_trail_enable(config_t *cfg);
49 gint xfade_cfg_gap_trail_len (config_t *cfg);
50 gint xfade_cfg_gap_trail_level (config_t *cfg);
51
52 #endif /* _CFGUTIL_H_ */
53