Mercurial > audlegacy
annotate Plugins/Output/crossfade/configure.c @ 507:b3dd43f37b81 trunk
[svn] documentation updates.
author | nenolod |
---|---|
date | Wed, 25 Jan 2006 22:42:38 -0800 |
parents | 8528a27ada8f |
children | 5b81b0f310e5 |
rev | line source |
---|---|
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
2 /* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
3 * XMMS Crossfade Plugin |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
4 * Copyright (C) 2000-2004 Peter Eisenlohr <peter@eisenlohr.org> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
5 * |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
6 * based on the original OSS Output Plugin |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
7 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
8 * |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
9 * This program is free software; you can redistribute it and/or modify |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
10 * it under the terms of the GNU General Public License as published by |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
11 * the Free Software Foundation; either version 2 of the License, or |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
12 * (at your option) any later version. |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
13 * |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
14 * This program is distributed in the hope that it will be useful, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
17 * GNU General Public License for more details. |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
18 * |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
19 * You should have received a copy of the GNU General Public License |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
20 * along with this program; if not, write to the Free Software |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
22 * USA. |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
23 */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
24 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
25 #ifdef HAVE_CONFIG_H |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
26 # include "config.h" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
27 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
28 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
29 #undef PRESET_SUPPORT |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
30 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
31 #include "crossfade.h" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
32 #include "configure.h" |
338
8528a27ada8f
[svn] Stop last few desperate attempts to hold on to GTK1+ includes.
chainsaw
parents:
336
diff
changeset
|
33 #include "interface-2.0.h" |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
34 #include "monitor.h" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
35 #include "support.h" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
36 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
37 #include <stdio.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
38 #include <string.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
39 #include <stdlib.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
40 #include <ctype.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
41 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
42 #include <fcntl.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
43 #include <unistd.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
44 #include <sys/ioctl.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
45 #include <sys/stat.h> |
336
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
46 #include <libaudacious/util.h> |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
47 #include <glib/gi18n.h> |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
48 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
49 #ifdef HAVE_LIBSAMPLERATE |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
50 # include <samplerate.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
51 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
52 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
53 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
54 #define HIDE(name) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
55 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
56 gtk_widget_hide(set_wgt); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
57 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
58 #define SHOW(name) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
59 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
60 gtk_widget_show(set_wgt); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
61 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
62 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
63 #define SETW_SENSITIVE(wgt, sensitive) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
64 gtk_widget_set_sensitive(wgt, sensitive) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
65 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
66 #define SETW_TOGGLE(wgt, active) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
67 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(wgt), active) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
68 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
69 #define SETW_SPIN(wgt, value) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
70 gtk_spin_button_set_value(GTK_SPIN_BUTTON(wgt), value) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
71 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
72 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
73 #define SET_SENSITIVE(name, sensitive) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
74 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
75 gtk_widget_set_sensitive(set_wgt, sensitive); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
76 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
77 #define SET_TOGGLE(name, active) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
78 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
79 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(set_wgt), active); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
80 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
81 #define SET_SPIN(name, value) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
82 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
83 gtk_spin_button_set_value(GTK_SPIN_BUTTON(set_wgt), value); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
84 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
85 #define SET_PAGE(name, index) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
86 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
87 gtk_notebook_set_page(GTK_NOTEBOOK(set_wgt), index); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
88 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
89 #define SET_HISTORY(name, index) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
90 { if((set_wgt = lookup_widget(config_win, name))) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
91 gtk_option_menu_set_history(GTK_OPTION_MENU(set_wgt), index); } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
92 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
93 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
94 #define GET_SENSITIVE(name) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
95 ((get_wgt = lookup_widget(config_win, name)) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
96 && GTK_WIDGET_SENSITIVE(get_wgt)) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
97 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
98 #define GET_TOGGLE(name) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
99 ((get_wgt = lookup_widget(config_win, name)) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
100 && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(get_wgt))) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
101 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
102 #define GET_SPIN(name) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
103 ((get_wgt = lookup_widget(config_win, name)) \ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
104 ? gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(get_wgt)) : 0) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
105 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
106 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
107 static GtkWidget *config_win = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
108 static GtkWidget *set_wgt; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
109 static GtkWidget *get_wgt; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
110 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
111 /* init with DEFAULT_CFG to make sure all string pointers are set to NULL */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
112 static config_t _cfg = CONFIG_DEFAULT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
113 static config_t *cfg = &_cfg; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
114 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
115 /* some helpers to keep track of the GUI's state */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
116 static gboolean checking = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
117 static gint op_index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
118 static plugin_config_t op_config; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
119 static gint ep_index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
120 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
121 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
122 static void update_plugin_config(gchar **config_string, gchar *name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
123 plugin_config_t *pc, gboolean save); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
124 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
125 /*****************************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
126 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
127 void g_free_f(gpointer data, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
128 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
129 g_free(data); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
130 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
131 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
132 /*****************************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
133 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
134 #ifdef PRESET_SUPPORT |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
135 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
136 scan_presets(gchar *filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
137 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
138 struct stat stats; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
139 FILE *fh; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
140 gchar *data, **lines, *tmp, *name; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
141 int i; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
142 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
143 if(lstat(filename, &stats)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
144 DEBUG(("[crossfade] scan_presets: \"%s\":\n", filename)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
145 PERROR("[crossfade] scan_presets: lstat"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
146 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
147 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
148 if(stats.st_size <= 0) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
149 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
150 if(!(data = g_malloc(stats.st_size + 1))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
151 DEBUG(("[crossfade] scan_presets: g_malloc(%ld) failed!\n", stats.st_size)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
152 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
153 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
154 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
155 if(!(fh = fopen(filename, "r"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
156 PERROR("[crossfade] scan_presets: fopen"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
157 g_free(data); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
158 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
159 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
160 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
161 if(fread(data, stats.st_size, 1, fh) != 1) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
162 DEBUG(("[crossfade] scan_presets: fread() failed!\n")); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
163 g_free(data); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
164 fclose(fh); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
165 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
166 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
167 fclose(fh); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
168 data[stats.st_size] = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
169 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
170 lines = g_strsplit(data, "\n", 0); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
171 g_free(data); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
172 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
173 if(!lines) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
174 DEBUG(("[crossfade] scan_presets: g_strsplit() failed!\n")); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
175 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
176 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
177 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
178 g_list_foreach(config->presets, g_free_f, NULL); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
179 g_list_free(config->presets); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
180 config->presets = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
181 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
182 for(i=0; lines[i]; i++) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
183 if(lines[i][0] == '[') { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
184 if((tmp = strchr(lines[i], ']'))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
185 *tmp = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
186 if((name = g_strdup(lines[i]+1))) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
187 config->presets = g_list_append(config->presets, name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
188 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
189 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
190 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
191 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
192 g_strfreev(lines); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
193 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
194 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
195 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
196 static void |
310 | 197 read_fade_config(ConfigDb *db, gchar *section, gchar *key, fade_config_t *fc) |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
198 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
199 gchar *s = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
200 gint n; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
201 |
310 | 202 if(!db || !section || !key || !fc) return; |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
203 |
310 | 204 bmp_cfg_db_get_string(db, section, key, &s); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
205 if(!s) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
206 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
207 n = sscanf(s, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
208 "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
209 &fc->type, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
210 &fc->pause_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
211 &fc->simple_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
212 &fc->out_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
213 &fc->out_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
214 &fc->out_volume, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
215 &fc->ofs_type, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
216 &fc->ofs_type_wanted, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
217 &fc->ofs_custom_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
218 &fc->in_locked, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
219 &fc->in_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
220 &fc->in_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
221 &fc->in_volume, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
222 &fc->flush_pause_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
223 &fc->flush_pause_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
224 &fc->flush_in_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
225 &fc->flush_in_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
226 &fc->flush_in_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
227 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
228 g_free(s); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
229 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
230 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
231 static void |
310 | 232 write_fade_config(ConfigDb *db, gchar *section, gchar *key, fade_config_t *fc) |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
233 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
234 gchar *s; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
235 |
310 | 236 if(!db || !section || !key || !fc) return; |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
237 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
238 s = g_strdup_printf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
239 fc->type, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
240 fc->pause_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
241 fc->simple_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
242 fc->out_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
243 fc->out_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
244 fc->out_volume, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
245 fc->ofs_type, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
246 fc->ofs_type_wanted, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
247 fc->ofs_custom_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
248 fc->in_locked, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
249 fc->in_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
250 fc->in_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
251 fc->in_volume, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
252 fc->flush_pause_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
253 fc->flush_pause_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
254 fc->flush_in_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
255 fc->flush_in_len_ms, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
256 fc->flush_in_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
257 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
258 if(!s) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
259 |
310 | 260 bmp_cfg_db_set_string(db, section, key, s); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
261 g_free(s); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
262 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
263 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
264 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
265 xfade_load_config() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
266 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
267 #ifdef PRESET_SUPPORT |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
268 gchar *filename; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
269 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
270 gchar *section = "Crossfade"; |
310 | 271 ConfigDb *db; |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
272 |
310 | 273 db = bmp_cfg_db_open(); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
274 |
310 | 275 /* config items used in v0.1 */ |
276 bmp_cfg_db_get_string(db, section, "output_plugin", &config->op_name); | |
277 bmp_cfg_db_get_string(db, section, "op_config_string", &config->op_config_string); | |
278 bmp_cfg_db_get_int(db, section, "buffer_size", &config->mix_size_ms); | |
279 bmp_cfg_db_get_int(db, section, "sync_size", &config->sync_size_ms); | |
280 bmp_cfg_db_get_int(db, section, "preload_size", &config->preload_size_ms); | |
281 bmp_cfg_db_get_int(db, section, "songchange_timeout", &config->songchange_timeout); | |
282 bmp_cfg_db_get_bool(db, section, "enable_mixer", &config->enable_mixer); | |
283 bmp_cfg_db_get_bool(db, section, "mixer_reverse", &config->mixer_reverse); | |
284 bmp_cfg_db_get_bool(db, section, "enable_debug", &config->enable_debug); | |
285 bmp_cfg_db_get_bool(db, section, "enable_monitor", &config->enable_monitor); | |
286 | |
287 /* config items introduced by v0.2 */ | |
288 bmp_cfg_db_get_bool(db, section, "gap_lead_enable", &config->gap_lead_enable); | |
289 bmp_cfg_db_get_int(db, section, "gap_lead_len_ms", &config->gap_lead_len_ms); | |
290 bmp_cfg_db_get_int(db, section, "gap_lead_level", &config->gap_lead_level); | |
291 bmp_cfg_db_get_bool(db, section, "gap_trail_enable", &config->gap_trail_enable); | |
292 bmp_cfg_db_get_int(db, section, "gap_trail_len_ms", &config->gap_trail_len_ms); | |
293 bmp_cfg_db_get_int(db, section, "gap_trail_level", &config->gap_trail_level); | |
294 bmp_cfg_db_get_int(db, section, "gap_trail_locked", &config->gap_trail_locked); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
295 |
310 | 296 /* config items introduced by v0.2.1 */ |
297 bmp_cfg_db_get_bool(db, section, "buffer_size_auto", &config->mix_size_auto); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
298 |
310 | 299 /* config items introduced by v0.2.3 */ |
300 bmp_cfg_db_get_bool(db, section, "album_detection", &config->album_detection); | |
301 | |
302 /* config items introduced by v0.2.4 */ | |
303 bmp_cfg_db_get_bool(db, section, "http_workaround", &config->enable_http_workaround); | |
304 bmp_cfg_db_get_bool(db, section, "enable_op_max_used", &config->enable_op_max_used); | |
305 bmp_cfg_db_get_int(db, section, "op_max_used_ms", &config->op_max_used_ms); | |
306 | |
307 /* config items introduced by v0.2.6 */ | |
308 bmp_cfg_db_get_string(db, section, "effect_plugin", &config->ep_name); | |
309 bmp_cfg_db_get_bool(db, section, "effect_enable", &config->ep_enable); | |
310 bmp_cfg_db_get_int(db, section, "output_rate", &config->output_rate); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
311 |
310 | 312 /* config items introduced by v0.3.0 */ |
313 bmp_cfg_db_get_bool(db, section, "volnorm_enable", &config->volnorm_enable); | |
314 bmp_cfg_db_get_bool(db, section, "volnorm_use_qa", &config->volnorm_use_qa); | |
315 bmp_cfg_db_get_int(db, section, "volnorm_target", &config->volnorm_target); | |
316 bmp_cfg_db_get_bool(db, section, "output_keep_opened", &config->output_keep_opened); | |
317 bmp_cfg_db_get_bool(db, section, "mixer_software", &config->mixer_software); | |
318 bmp_cfg_db_get_int(db, section, "mixer_vol_left", &config->mixer_vol_left); | |
319 bmp_cfg_db_get_int(db, section, "mixer_vol_right", &config->mixer_vol_right); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
320 |
310 | 321 /* config items introduced by v0.3.2 */ |
322 bmp_cfg_db_get_bool(db, section, "no_xfade_if_same_file", &config->no_xfade_if_same_file); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
323 |
310 | 324 /* config items introduced by v0.3.3 */ |
325 bmp_cfg_db_get_bool(db, section, "gap_crossing", &config->gap_crossing); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
326 |
310 | 327 /* config items introduced by v0.3.6 */ |
328 bmp_cfg_db_get_int(db, section, "output_quality", &config->output_quality); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
329 |
310 | 330 /* fade configs */ |
331 read_fade_config(db, section, "fc_xfade", &config->fc[FADE_CONFIG_XFADE]); | |
332 read_fade_config(db, section, "fc_manual", &config->fc[FADE_CONFIG_MANUAL]); | |
333 read_fade_config(db, section, "fc_album", &config->fc[FADE_CONFIG_ALBUM]); | |
334 read_fade_config(db, section, "fc_start", &config->fc[FADE_CONFIG_START]); | |
335 read_fade_config(db, section, "fc_stop", &config->fc[FADE_CONFIG_STOP]); | |
336 read_fade_config(db, section, "fc_eop", &config->fc[FADE_CONFIG_EOP]); | |
337 read_fade_config(db, section, "fc_seek", &config->fc[FADE_CONFIG_SEEK]); | |
338 read_fade_config(db, section, "fc_pause", &config->fc[FADE_CONFIG_PAUSE]); | |
339 | |
340 bmp_cfg_db_close(db); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
341 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
342 #ifdef PRESET_SUPPORT |
301
08e4eb900f21
[svn] Config file paths should be ~/.audacious and not ~/.xmms
chainsaw
parents:
262
diff
changeset
|
343 filename = g_strconcat(g_get_home_dir(), "/.audacious/xmms-crossfade-presets", NULL); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
344 scan_presets(filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
345 g_free(filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
346 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
347 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
348 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
349 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
350 xfade_save_config() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
351 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
352 gchar *section = "Crossfade"; |
310 | 353 ConfigDb *db; |
354 | |
355 db = bmp_cfg_db_open(); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
356 |
310 | 357 /* obsolete config items */ |
358 bmp_cfg_db_unset_key(db, section, "underrun_pct"); | |
359 bmp_cfg_db_unset_key(db, section, "enable_crossfade"); | |
360 bmp_cfg_db_unset_key(db, section, "enable_gapkiller"); | |
361 bmp_cfg_db_unset_key(db, section, "mixer_use_master"); | |
362 bmp_cfg_db_unset_key(db, section, "late_effect"); | |
363 bmp_cfg_db_unset_key(db, section, "gap_lead_length"); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
364 |
310 | 365 /* config items used in v0.1 */ |
366 bmp_cfg_db_set_string(db, section, "output_plugin", config->op_name ? config->op_name : DEFAULT_OP_NAME); | |
367 bmp_cfg_db_set_string(db, section, "op_config_string", config->op_config_string ? config->op_config_string : DEFAULT_OP_CONFIG_STRING); | |
368 bmp_cfg_db_set_int(db, section, "buffer_size", config->mix_size_ms); | |
369 bmp_cfg_db_set_int(db, section, "sync_size", config->sync_size_ms); | |
370 bmp_cfg_db_set_int(db, section, "preload_size", config->preload_size_ms); | |
371 bmp_cfg_db_set_int(db, section, "songchange_timeout", config->songchange_timeout); | |
372 bmp_cfg_db_set_bool(db, section, "enable_mixer", config->enable_mixer); | |
373 bmp_cfg_db_set_bool(db, section, "mixer_reverse", config->mixer_reverse); | |
374 bmp_cfg_db_set_bool(db, section, "enable_debug", config->enable_debug); | |
375 bmp_cfg_db_set_bool(db, section, "enable_monitor", config->enable_monitor); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
376 |
310 | 377 /* config items introduced by v0.2 */ |
378 bmp_cfg_db_set_bool(db, section, "gap_lead_enable", config->gap_lead_enable); | |
379 bmp_cfg_db_set_int(db, section, "gap_lead_len_ms", config->gap_lead_len_ms); | |
380 bmp_cfg_db_set_int(db, section, "gap_lead_level", config->gap_lead_level); | |
381 bmp_cfg_db_set_bool(db, section, "gap_trail_enable", config->gap_trail_enable); | |
382 bmp_cfg_db_set_int(db, section, "gap_trail_len_ms", config->gap_trail_len_ms); | |
383 bmp_cfg_db_set_int(db, section, "gap_trail_level", config->gap_trail_level); | |
384 bmp_cfg_db_set_int(db, section, "gap_trail_locked", config->gap_trail_locked); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
385 |
310 | 386 /* config items introduced by v0.2.1 */ |
387 bmp_cfg_db_set_bool(db, section, "buffer_size_auto", config->mix_size_auto); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
388 |
310 | 389 /* config items introduced by v0.2.3 */ |
390 bmp_cfg_db_set_bool(db, section, "album_detection", config->album_detection); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
391 |
310 | 392 /* config items introduced by v0.2.4 */ |
393 bmp_cfg_db_set_bool(db, section, "http_workaround", config->enable_http_workaround); | |
394 bmp_cfg_db_set_bool(db, section, "enable_op_max_used", config->enable_op_max_used); | |
395 bmp_cfg_db_set_int(db, section, "op_max_used_ms", config->op_max_used_ms); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
396 |
310 | 397 /* config items introduced by v0.2.6 */ |
398 bmp_cfg_db_set_string(db, section, "effect_plugin", config->ep_name ? config->ep_name : DEFAULT_EP_NAME); | |
399 bmp_cfg_db_set_bool(db, section, "effect_enable", config->ep_enable); | |
400 bmp_cfg_db_set_int(db, section, "output_rate", config->output_rate); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
401 |
310 | 402 /* config items introduced by v0.3.0 */ |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
403 #ifdef VOLUME_NORMALIZER |
310 | 404 bmp_cfg_db_set_bool(db, section, "volnorm_enable", config->volnorm_enable); |
405 bmp_cfg_db_set_bool(db, section, "volnorm_use_qa", config->volnorm_use_qa); | |
406 bmp_cfg_db_set_int(db, section, "volnorm_target", config->volnorm_target); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
407 #endif |
310 | 408 bmp_cfg_db_set_bool(db, section, "output_keep_opened", config->output_keep_opened); |
409 bmp_cfg_db_set_bool(db, section, "mixer_software", config->mixer_software); | |
410 bmp_cfg_db_set_int(db, section, "mixer_vol_left", config->mixer_vol_left); | |
411 bmp_cfg_db_set_int(db, section, "mixer_vol_right", config->mixer_vol_right); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
412 |
310 | 413 /* config items introduced by v0.3.2 */ |
414 bmp_cfg_db_set_bool(db, section, "no_xfade_if_same_file",config->no_xfade_if_same_file); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
415 |
310 | 416 /* config items introduced by v0.3.2 */ |
417 bmp_cfg_db_set_bool(db, section, "gap_crossing", config->gap_crossing); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
418 |
310 | 419 /* config items introduced by v0.3.6 */ |
420 bmp_cfg_db_set_int(db, section, "output_quality", config->output_quality); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
421 |
310 | 422 /* fade configs */ |
423 write_fade_config(db, section, "fc_xfade", &config->fc[FADE_CONFIG_XFADE]); | |
424 write_fade_config(db, section, "fc_manual", &config->fc[FADE_CONFIG_MANUAL]); | |
425 write_fade_config(db, section, "fc_album", &config->fc[FADE_CONFIG_ALBUM]); | |
426 write_fade_config(db, section, "fc_start", &config->fc[FADE_CONFIG_START]); | |
427 write_fade_config(db, section, "fc_stop", &config->fc[FADE_CONFIG_STOP]); | |
428 write_fade_config(db, section, "fc_eop", &config->fc[FADE_CONFIG_EOP]); | |
429 write_fade_config(db, section, "fc_seek", &config->fc[FADE_CONFIG_SEEK]); | |
430 write_fade_config(db, section, "fc_pause", &config->fc[FADE_CONFIG_PAUSE]); | |
431 | |
432 bmp_cfg_db_close(db); | |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
433 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
434 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
435 #define SAFE_FREE(x) if(x) { g_free(x); x = NULL; } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
436 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
437 xfade_free_config() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
438 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
439 SAFE_FREE(cfg->op_config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
440 SAFE_FREE(cfg->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
441 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
442 g_list_foreach(config->presets, g_free_f, NULL); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
443 g_list_free(config->presets); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
444 config->presets = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
445 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
446 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
447 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
448 xfade_load_plugin_config(gchar *config_string, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
449 gchar *plugin_name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
450 plugin_config_t *plugin_config) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
451 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
452 update_plugin_config(&config_string, plugin_name, plugin_config, FALSE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
453 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
454 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
455 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
456 xfade_save_plugin_config(gchar **config_string, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
457 gchar *plugin_name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
458 plugin_config_t *plugin_config) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
459 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
460 update_plugin_config(config_string, plugin_name, plugin_config, TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
461 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
462 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
463 /*** helpers *****************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
464 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
465 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
466 xfade_cfg_fadeout_len(fade_config_t *fc) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
467 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
468 if(!fc) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
469 switch(fc->type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
470 case FADE_TYPE_SIMPLE_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
471 return fc->simple_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
472 case FADE_TYPE_ADVANCED_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
473 return fc->out_enable ? fc->out_len_ms : 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
474 case FADE_TYPE_FADEOUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
475 case FADE_TYPE_PAUSE_ADV: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
476 return fc->out_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
477 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
478 return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
479 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
480 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
481 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
482 xfade_cfg_fadeout_volume(fade_config_t *fc) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
483 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
484 gint volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
485 if(!fc) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
486 switch(fc->type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
487 case FADE_TYPE_ADVANCED_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
488 case FADE_TYPE_FADEOUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
489 volume = fc->out_volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
490 if(volume < 0) volume = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
491 if(volume > 100) volume = 100; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
492 return volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
493 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
494 return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
495 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
496 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
497 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
498 xfade_cfg_offset(fade_config_t *fc) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
499 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
500 if(!fc) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
501 switch(fc->type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
502 case FADE_TYPE_FLUSH: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
503 return fc->flush_pause_enable ? fc->flush_pause_len_ms : 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
504 case FADE_TYPE_PAUSE: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
505 return fc->pause_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
506 case FADE_TYPE_SIMPLE_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
507 return -fc->simple_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
508 case FADE_TYPE_ADVANCED_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
509 switch(fc->ofs_type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
510 case FC_OFFSET_LOCK_OUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
511 return -fc->out_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
512 case FC_OFFSET_LOCK_IN: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
513 return -fc->in_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
514 case FC_OFFSET_CUSTOM: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
515 return fc->ofs_custom_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
516 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
517 return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
518 case FADE_TYPE_FADEOUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
519 case FADE_TYPE_PAUSE_ADV: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
520 return fc->ofs_custom_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
521 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
522 return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
523 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
524 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
525 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
526 xfade_cfg_fadein_len(fade_config_t *fc) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
527 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
528 if(!fc) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
529 switch(fc->type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
530 case FADE_TYPE_FLUSH: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
531 return fc->flush_in_enable ? fc->flush_in_len_ms : 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
532 case FADE_TYPE_SIMPLE_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
533 return fc->simple_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
534 case FADE_TYPE_ADVANCED_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
535 return |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
536 fc->in_locked |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
537 ? (fc->out_enable ? fc->out_len_ms : 0) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
538 : (fc->in_enable ? fc->in_len_ms : 0); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
539 case FADE_TYPE_FADEIN: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
540 case FADE_TYPE_PAUSE_ADV: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
541 return fc->in_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
542 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
543 return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
544 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
545 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
546 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
547 xfade_cfg_fadein_volume(fade_config_t *fc) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
548 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
549 gint volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
550 if(!fc) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
551 switch(fc->type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
552 case FADE_TYPE_FLUSH: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
553 volume = fc->flush_in_volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
554 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
555 case FADE_TYPE_ADVANCED_XF: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
556 volume = fc->in_locked ? fc->out_volume : fc->in_volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
557 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
558 case FADE_TYPE_FADEIN: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
559 volume = fc->in_volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
560 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
561 default: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
562 volume = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
563 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
564 if(volume < 0) volume = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
565 if(volume > 100) volume = 100; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
566 return volume; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
567 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
568 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
569 gboolean |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
570 xfade_cfg_gap_trail_enable(config_t *cfg) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
571 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
572 return cfg->gap_trail_locked |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
573 ? cfg->gap_lead_enable |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
574 : cfg->gap_trail_enable; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
575 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
576 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
577 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
578 xfade_cfg_gap_trail_len(config_t *cfg) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
579 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
580 if(!xfade_cfg_gap_trail_enable(cfg)) return 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
581 return cfg->gap_trail_locked |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
582 ? cfg->gap_lead_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
583 : cfg->gap_trail_len_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
584 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
585 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
586 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
587 xfade_cfg_gap_trail_level(config_t *cfg) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
588 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
589 return cfg->gap_trail_locked |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
590 ? cfg->gap_lead_level |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
591 : cfg->gap_trail_level; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
592 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
593 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
594 gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
595 xfade_mix_size_ms(config_t *cfg) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
596 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
597 if(cfg->mix_size_auto) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
598 gint i, min_size = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
599 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
600 for(i=0; i<MAX_FADE_CONFIGS; i++) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
601 gint size = xfade_cfg_fadeout_len(&cfg->fc[i]); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
602 gint offset = xfade_cfg_offset(&cfg->fc[i]); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
603 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
604 if(cfg->fc[i].type == FADE_TYPE_PAUSE_ADV) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
605 size += xfade_cfg_fadein_len(&cfg->fc[i]); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
606 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
607 if(size < -offset) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
608 size = -offset; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
609 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
610 if(size > min_size) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
611 min_size = size; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
612 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
613 return min_size += xfade_cfg_gap_trail_len(cfg) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
614 + cfg->songchange_timeout; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
615 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
616 else |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
617 return cfg->mix_size_ms; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
618 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
619 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
620 /*** internal helpers ********************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
621 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
622 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
623 add_menu_item(GtkWidget *menu, gchar *title, GtkSignalFunc func, gint index, gint **imap) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
624 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
625 GtkWidget *item; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
626 if(!menu || !title || !func) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
627 item = gtk_menu_item_new_with_label(title); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
628 gtk_signal_connect(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(func), (gpointer)index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
629 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
630 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
631 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
632 if(imap) *((*imap)++) = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
633 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
634 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
635 /*** output method ***********************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
636 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
637 /*-- callbacks --------------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
638 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
639 static void resampling_rate_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
640 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
641 cfg->output_rate = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
642 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
643 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
644 #ifdef HAVE_LIBSAMPLERATE |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
645 static void resampling_quality_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
646 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
647 cfg->output_quality = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
648 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
649 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
650 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
651 /*** plugin output ***********************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
652 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
653 static gchar * |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
654 strip(gchar *s) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
655 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
656 gchar *p; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
657 if(!s) return NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
658 for(; *s == ' '; s++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
659 if(!*s) return s; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
660 for(p = s+strlen(s)-1; *p == ' '; p--); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
661 *++p = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
662 return s; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
663 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
664 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
665 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
666 update_plugin_config(gchar **config_string, gchar *name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
667 plugin_config_t *pc, gboolean save) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
668 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
669 plugin_config_t default_pc = DEFAULT_OP_CONFIG; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
670 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
671 gchar *buffer = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
672 gchar out[1024]; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
673 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
674 gboolean plugin_found = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
675 gchar *plugin, *next_plugin; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
676 gchar *args; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
677 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
678 if(pc && !save) *pc = default_pc; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
679 if(!config_string || !*config_string || !name || !pc) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
680 DEBUG(("[crossfade] update_plugin_config: missing arg!\n")); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
681 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
682 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
683 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
684 buffer = g_strdup(*config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
685 out[0] = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
686 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
687 for(plugin = buffer; plugin; plugin = next_plugin) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
688 if((next_plugin = strchr(plugin, ';'))) *next_plugin++ = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
689 if((args = strchr(plugin, '='))) *args++ = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
690 plugin = strip(plugin); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
691 if(!*plugin || !args || !*args) continue; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
692 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
693 if(save) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
694 if(0 == strcmp(plugin, name)) continue; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
695 if(*out) strcat(out, "; "); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
696 strcat(out, plugin); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
697 strcat(out, "="); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
698 strcat(out, args); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
699 continue; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
700 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
701 else if(strcmp(plugin, name)) continue; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
702 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
703 args = strip(args); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
704 sscanf(args, "%d,%d,%d,%d", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
705 &pc->throttle_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
706 &pc->max_write_enable, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
707 &pc->max_write_len, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
708 &pc->force_reopen); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
709 pc->max_write_len &= -4; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
710 plugin_found = TRUE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
711 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
712 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
713 if(save) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
714 /* only save if settings differ from defaults */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
715 if(( pc->throttle_enable != default_pc.throttle_enable) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
716 ||(pc->max_write_enable != default_pc.max_write_enable) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
717 ||(pc->max_write_len != default_pc.max_write_len) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
718 ||(pc->force_reopen != default_pc.force_reopen)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
719 if(*out) strcat(out, "; "); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
720 sprintf(out + strlen(out), "%s=%d,%d,%d,%d", name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
721 pc->throttle_enable ? 1 : 0, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
722 pc->max_write_enable ? 1 : 0, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
723 pc->max_write_len, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
724 pc->force_reopen); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
725 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
726 if(*config_string) g_free(*config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
727 *config_string = g_strdup(out); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
728 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
729 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
730 g_free(buffer); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
731 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
732 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
733 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
734 config_plugin_cb(GtkWidget *widget, gint index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
735 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
736 static gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
737 scan_plugins(GtkWidget *option_menu, gchar *selected) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
738 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
739 GtkWidget *menu = gtk_menu_new(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
740 GList *list = g_list_first(get_output_list()); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
741 gint index = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
742 gint sel_index = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
743 gint def_index = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
744 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
745 /* sanity check */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
746 if(selected == NULL) selected = ""; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
747 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
748 /* parse module list */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
749 while(list) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
750 OutputPlugin *op = (OutputPlugin *)list->data; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
751 GtkWidget *item = gtk_menu_item_new_with_label(op->description); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
752 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
753 if(op == get_crossfade_oplugin_info()) /* disable selecting ourselves */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
754 gtk_widget_set_sensitive(item, FALSE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
755 else { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
756 if(def_index == -1) def_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
757 if(selected && !strcmp(g_basename(op->filename), selected)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
758 sel_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
759 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
760 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
761 /* create menu item */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
762 gtk_signal_connect(GTK_OBJECT(item), "activate", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
763 GTK_SIGNAL_FUNC(config_plugin_cb), (gpointer)index++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
764 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
765 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
766 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
767 /* advance to next module */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
768 list = g_list_next(list); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
769 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
770 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
771 /* attach menu */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
772 gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
773 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
774 if(sel_index == -1) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
775 DEBUG(("[crossfade] scan_plugins: plugin not found (\"%s\")\n", selected)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
776 return def_index; /* use default (first entry) */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
777 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
778 return sel_index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
779 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
780 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
781 /*-- plugin output callbacks ------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
782 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
783 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
784 config_plugin_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
785 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
786 OutputPlugin *op = g_list_nth_data(get_output_list(), index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
787 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
788 /* get plugin options from gui */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
789 op_config.throttle_enable = GET_TOGGLE("op_throttle_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
790 op_config.max_write_enable = GET_TOGGLE("op_maxblock_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
791 op_config.max_write_len = GET_SPIN ("op_maxblock_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
792 op_config.force_reopen = GET_TOGGLE("op_forcereopen_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
793 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
794 /* config -> string */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
795 xfade_save_plugin_config(&cfg->op_config_string, cfg->op_name, &op_config); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
796 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
797 /* select new plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
798 op_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
799 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
800 /* get new plugin's name */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
801 if(cfg->op_name) g_free(cfg->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
802 cfg->op_name = (op && op->filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
803 ? g_strdup(g_basename(op->filename)) : NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
804 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
805 /* string -> config */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
806 xfade_load_plugin_config(cfg->op_config_string, cfg->op_name, &op_config); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
807 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
808 /* update gui */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
809 SET_SENSITIVE("op_configure_button", op && (op->configure != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
810 SET_SENSITIVE("op_about_button", op && (op->about != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
811 SET_TOGGLE ("op_throttle_check", op_config.throttle_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
812 SET_TOGGLE ("op_maxblock_check", op_config.max_write_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
813 SET_SPIN ("op_maxblock_spin", op_config.max_write_len); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
814 SET_SENSITIVE("op_maxblock_spin", op_config.max_write_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
815 SET_TOGGLE ("op_forcereopen_check", op_config.force_reopen); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
816 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
817 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
818 void on_output_plugin_configure_button_clicked (GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
819 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
820 OutputPlugin *op = g_list_nth_data(get_output_list(), op_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
821 if((op == NULL) || (op->configure == NULL)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
822 op->configure(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
823 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
824 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
825 void on_output_plugin_about_button_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
826 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
827 OutputPlugin *op = g_list_nth_data(get_output_list(), op_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
828 if((op == NULL) || (op->about == NULL)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
829 op->about(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
830 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
831 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
832 void on_op_throttle_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
833 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
834 op_config.throttle_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
835 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
836 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
837 void on_op_maxblock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
838 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
839 op_config.max_write_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
840 SET_SENSITIVE("op_maxblock_spin", op_config.max_write_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
841 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
842 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
843 void on_op_maxblock_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
844 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
845 op_config.max_write_len = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
846 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
847 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
848 void on_op_forcereopen_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
849 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
850 op_config.max_write_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
851 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
852 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
853 /*** effects *****************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
854 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
855 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
856 config_effect_plugin_cb(GtkWidget *widget, gint index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
857 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
858 static gint |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
859 scan_effect_plugins(GtkWidget *option_menu, gchar *selected) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
860 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
861 GtkWidget *menu = gtk_menu_new(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
862 GList *list = g_list_first(get_effect_list()); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
863 gint index = 0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
864 gint sel_index = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
865 gint def_index = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
866 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
867 /* sanity check */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
868 if(selected == NULL) selected = ""; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
869 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
870 /* parse module list */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
871 while(list) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
872 EffectPlugin *ep = (EffectPlugin *)list->data; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
873 GtkWidget *item = gtk_menu_item_new_with_label(ep->description); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
874 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
875 if(def_index == -1) def_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
876 if(selected && !strcmp(g_basename(ep->filename), selected)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
877 sel_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
878 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
879 /* create menu item */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
880 gtk_signal_connect(GTK_OBJECT(item), "activate", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
881 GTK_SIGNAL_FUNC(config_effect_plugin_cb), (gpointer)index++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
882 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
883 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
884 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
885 /* advance to next module */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
886 list = g_list_next(list); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
887 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
888 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
889 /* attach menu */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
890 gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
891 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
892 if(sel_index == -1) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
893 DEBUG(("[crossfade] scan_effect_plugins: plugin not found (\"%s\")\n", selected)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
894 return def_index; /* use default (first entry) */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
895 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
896 return sel_index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
897 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
898 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
899 /*-- plugin output callbacks ------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
900 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
901 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
902 config_effect_plugin_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
903 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
904 EffectPlugin *ep = g_list_nth_data(get_effect_list(), index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
905 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
906 /* select new plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
907 ep_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
908 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
909 /* get new plugin's name */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
910 if(cfg->ep_name) g_free(cfg->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
911 cfg->ep_name = (ep && ep->filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
912 ? g_strdup(g_basename(ep->filename)) : NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
913 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
914 /* update gui */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
915 SET_SENSITIVE("ep_configure_button", ep && (ep->configure != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
916 SET_SENSITIVE("ep_about_button", ep && (ep->about != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
917 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
918 /* 0.3.5: apply effect config immediatelly */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
919 if(config->ep_name) g_free(config->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
920 config->ep_name = g_strdup(cfg->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
921 xfade_realize_ep_config(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
922 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
923 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
924 void on_ep_configure_button_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
925 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
926 EffectPlugin *ep = g_list_nth_data(get_effect_list(), ep_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
927 if((ep == NULL) || (ep->configure == NULL)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
928 ep->configure(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
929 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
930 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
931 void on_ep_about_button_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
932 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
933 EffectPlugin *ep = g_list_nth_data(get_effect_list(), ep_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
934 if((ep == NULL) || (ep->about == NULL)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
935 ep->about(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
936 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
937 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
938 void on_ep_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
939 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
940 /* 0.3.5: apply effect config immediatelly */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
941 config->ep_enable = cfg->ep_enable = GET_TOGGLE("ep_enable_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
942 xfade_realize_ep_config(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
943 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
944 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
945 /*-- volume normalizer ------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
946 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
947 void check_effects_dependencies() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
948 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
949 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
950 checking = TRUE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
951 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
952 SET_SENSITIVE("volnorm_target_spin", cfg->volnorm_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
953 SET_SENSITIVE("volnorm_target_label", cfg->volnorm_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
954 SET_SENSITIVE("volnorm_quantaudio_check", cfg->volnorm_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
955 SET_SENSITIVE("volnorm_target_spin", cfg->volnorm_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
956 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
957 checking = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
958 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
959 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
960 void on_volnorm_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
961 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
962 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
963 cfg->volnorm_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
964 check_effects_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
965 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
966 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
967 /*** crossfader **************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
968 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
969 static void xf_config_cb(GtkWidget *widget, gint index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
970 static void xf_type_cb (GtkWidget *widget, gint index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
971 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
972 /* crude hack to keep track of menu items */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
973 static gint xf_config_index_map[MAX_FADE_CONFIGS]; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
974 static gint xf_type_index_map [MAX_FADE_TYPES]; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
975 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
976 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
977 create_crossfader_config_menu() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
978 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
979 GtkWidget *optionmenu, *menu; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
980 gint i, *imap; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
981 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
982 if((optionmenu = lookup_widget(config_win, "xf_config_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
983 for(i=0; i<MAX_FADE_CONFIGS; i++) xf_config_index_map[i] = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
984 imap = xf_config_index_map; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
985 menu = gtk_menu_new(); |
262
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
986 add_menu_item(menu, "Start of playback", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_START, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
987 add_menu_item(menu, "Automatic songchange", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_XFADE, &imap); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
988 #if 0 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
989 /* this should be FADE_TYPE_NONE all the time, anyway, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
990 so no need to make it configureable by the user */ |
262
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
991 add_menu_item(menu, "Automatic (gapless)", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_ALBUM, &imap); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
992 #endif |
262
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
993 add_menu_item(menu, "Manual songchange", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_MANUAL, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
994 add_menu_item(menu, "Manual stop", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_STOP, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
995 add_menu_item(menu, "End of playlist", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_EOP, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
996 add_menu_item(menu, "Seeking", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_SEEK, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
997 add_menu_item(menu, "Pause", GTK_SIGNAL_FUNC(xf_config_cb), FADE_CONFIG_PAUSE, &imap); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
998 gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
999 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1000 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1001 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1002 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1003 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1004 create_crossfader_type_menu() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1005 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1006 GtkWidget *optionmenu, *menu; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1007 gint i, *imap; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1008 guint32 mask; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1009 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1010 if((optionmenu = lookup_widget(config_win, "xf_type_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1011 for(i=0; i<MAX_FADE_TYPES; i++) xf_type_index_map[i] = -1; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1012 imap = xf_type_index_map; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1013 menu = gtk_menu_new(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1014 mask = cfg->fc[cfg->xf_index].type_mask; |
262
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1015 if(mask & (1 << FADE_TYPE_REOPEN)) add_menu_item(menu, "Reopen output device", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_REOPEN, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1016 if(mask & (1 << FADE_TYPE_FLUSH)) add_menu_item(menu, "Flush output device", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_FLUSH, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1017 if(mask & (1 << FADE_TYPE_NONE)) add_menu_item(menu, "None (gapless/off)", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_NONE, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1018 if(mask & (1 << FADE_TYPE_PAUSE)) add_menu_item(menu, "Pause", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_PAUSE, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1019 if(mask & (1 << FADE_TYPE_SIMPLE_XF)) add_menu_item(menu, "Simple crossfade", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_SIMPLE_XF, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1020 if(mask & (1 << FADE_TYPE_ADVANCED_XF)) add_menu_item(menu, "Advanced crossfade", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_ADVANCED_XF, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1021 if(mask & (1 << FADE_TYPE_FADEIN)) add_menu_item(menu, "Fadein", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_FADEIN, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1022 if(mask & (1 << FADE_TYPE_FADEOUT)) add_menu_item(menu, "Fadeout", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_FADEOUT, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1023 if(mask & (1 << FADE_TYPE_PAUSE_NONE)) add_menu_item(menu, "None", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_PAUSE_NONE, &imap); |
5410de731c3c
[svn] Remove last of the internal OSS support and default to ALSA. Squashed a few warnings but it is still messy.
chainsaw
parents:
261
diff
changeset
|
1024 if(mask & (1 << FADE_TYPE_PAUSE_ADV)) add_menu_item(menu, "Fadeout/Fadein", GTK_SIGNAL_FUNC(xf_type_cb), FADE_TYPE_PAUSE_ADV, &imap); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1025 gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1026 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1027 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1028 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1029 #define NONE 0x00000000L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1030 #define XF_CONFIG 0x00000001L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1031 #define XF_TYPE 0x00000002L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1032 #define XF_MIX_SIZE 0x00000004L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1033 #define XF_FADEOUT 0x00000008L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1034 #define XF_OFFSET 0x00000010L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1035 #define XF_FADEIN 0x00000020L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1036 #define XF_PAGE 0x00000040L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1037 #define XF_FLUSH 0x00000080L |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1038 #define ANY 0xffffffffL |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1039 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1040 static void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1041 check_crossfader_dependencies(guint32 mask) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1042 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1043 fade_config_t *fc = &cfg->fc[cfg->xf_index]; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1044 gint i; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1045 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1046 /* HACK: avoid endless recursion */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1047 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1048 checking = TRUE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1049 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1050 if(mask & XF_FLUSH) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1051 SET_TOGGLE ("xftfp_enable_check", fc->flush_pause_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1052 SET_SENSITIVE("xftfp_length_label", fc->flush_pause_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1053 SET_SENSITIVE("xftfp_length_spin", fc->flush_pause_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1054 SET_TOGGLE ("xftffi_enable_check", fc->flush_in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1055 SET_SENSITIVE("xftffi_length_label", fc->flush_in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1056 SET_SENSITIVE("xftffi_length_spin", fc->flush_in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1057 SET_SENSITIVE("xftffi_volume_label", fc->flush_in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1058 SET_SENSITIVE("xftffi_volume_spin", fc->flush_in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1059 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1060 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1061 if(mask & XF_MIX_SIZE) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1062 SET_TOGGLE ("xf_autobuf_check", cfg->mix_size_auto); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1063 SET_SENSITIVE("xf_buffer_spin", !cfg->mix_size_auto); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1064 SET_SPIN ("xf_buffer_spin", xfade_mix_size_ms(cfg)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1065 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1066 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1067 if(mask & XF_CONFIG) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1068 for(i=0; i<MAX_FADE_CONFIGS && (xf_config_index_map[i] != cfg->xf_index); i++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1069 if(i == MAX_FADE_CONFIGS) i=0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1070 SET_HISTORY("xf_config_optionmenu", i); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1071 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1072 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1073 if(mask & XF_TYPE) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1074 create_crossfader_type_menu(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1075 for(i=0; i<MAX_FADE_TYPES && (xf_type_index_map[i] != fc->type); i++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1076 if(i == MAX_FADE_TYPES) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1077 fc->type = FADE_TYPE_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1078 for(i=0; i<MAX_FADE_TYPES && (xf_type_index_map[i] != fc->type); i++); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1079 if(i == MAX_FADE_CONFIGS) i=0; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1080 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1081 SET_HISTORY("xf_type_optionmenu", i); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1082 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1083 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1084 if(mask & XF_PAGE) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1085 SET_PAGE("xf_type_notebook", fc->type); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1086 SET_SPIN("pause_length_spin", fc->pause_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1087 SET_SPIN("simple_length_spin", fc->simple_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1088 if(fc->config == FADE_CONFIG_SEEK) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1089 HIDE("xftf_pause_frame"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1090 HIDE("xftf_fadein_frame"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1091 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1092 else { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1093 SHOW("xftf_pause_frame"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1094 SHOW("xftf_fadein_frame"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1095 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1096 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1097 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1098 if(mask & XF_FADEOUT) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1099 SET_TOGGLE ("fadeout_enable_check", fc->out_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1100 SET_SENSITIVE("fadeout_length_label", fc->out_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1101 SET_SENSITIVE("fadeout_length_spin", fc->out_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1102 SET_SPIN ("fadeout_length_spin", fc->out_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1103 SET_SENSITIVE("fadeout_volume_label", fc->out_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1104 SET_SENSITIVE("fadeout_volume_spin", fc->out_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1105 SET_SPIN ("fadeout_volume_spin", fc->out_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1106 SET_SPIN ("xftfo_length_spin", fc->out_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1107 SET_SPIN ("xftfo_volume_spin", fc->out_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1108 SET_SPIN ("xftfoi_fadeout_spin", fc->out_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1109 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1110 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1111 if(mask & XF_FADEIN) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1112 SET_TOGGLE ("fadein_lock_check", fc->in_locked); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1113 SET_SENSITIVE("fadein_enable_check", !fc->in_locked); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1114 SET_TOGGLE ("fadein_enable_check", fc->in_locked ? fc->out_enable : fc->in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1115 SET_SENSITIVE("fadein_length_label", !fc->in_locked && fc->in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1116 SET_SENSITIVE("fadein_length_spin", !fc->in_locked && fc->in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1117 SET_SPIN ("fadein_length_spin", fc->in_locked ? fc->out_len_ms : fc->in_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1118 SET_SENSITIVE("fadein_volume_label", !fc->in_locked && fc->in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1119 SET_SENSITIVE("fadein_volume_spin", !fc->in_locked && fc->in_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1120 SET_SPIN ("fadein_volume_spin", fc->in_locked ? fc->out_volume : fc->in_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1121 SET_SPIN ("xftfi_length_spin", fc->in_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1122 SET_SPIN ("xftfi_volume_spin", fc->in_volume); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1123 SET_SPIN ("xftfoi_fadein_spin", fc->in_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1124 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1125 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1126 if(mask & XF_OFFSET) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1127 if(fc->out_enable) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1128 SET_SENSITIVE("xfofs_lockout_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1129 if(!fc->in_locked && fc->in_enable) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1130 SET_SENSITIVE("xfofs_lockin_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1131 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1132 switch(fc->ofs_type) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1133 case FC_OFFSET_LOCK_OUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1134 if(!fc->out_enable) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1135 SET_TOGGLE("xfofs_none_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1136 fc->ofs_type = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1137 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1138 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1139 case FC_OFFSET_LOCK_IN: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1140 if(!(!fc->in_locked && fc->in_enable)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1141 if((fc->in_locked && fc->out_enable)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1142 SET_TOGGLE("xfofs_lockout_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1143 fc->ofs_type = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1144 } else { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1145 SET_TOGGLE("xfofs_none_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1146 fc->ofs_type = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1147 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1148 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1149 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1150 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1151 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1152 switch(fc->ofs_type_wanted) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1153 case FC_OFFSET_NONE: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1154 SET_TOGGLE("xfofs_none_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1155 fc->ofs_type = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1156 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1157 case FC_OFFSET_LOCK_OUT: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1158 if(fc->out_enable) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1159 SET_TOGGLE("xfofs_lockout_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1160 fc->ofs_type = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1161 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1162 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1163 case FC_OFFSET_LOCK_IN: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1164 if(!fc->in_locked && fc->in_enable) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1165 SET_TOGGLE("xfofs_lockin_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1166 fc->ofs_type = FC_OFFSET_LOCK_IN; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1167 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1168 else if(fc->out_enable) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1169 SET_TOGGLE("xfofs_lockout_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1170 fc->ofs_type = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1171 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1172 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1173 case FC_OFFSET_CUSTOM: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1174 SET_TOGGLE("xfofs_custom_radiobutton", TRUE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1175 fc->ofs_type = FC_OFFSET_CUSTOM; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1176 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1177 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1178 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1179 if(!fc->out_enable) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1180 SET_SENSITIVE("xfofs_lockout_radiobutton", FALSE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1181 if(!(!fc->in_locked && fc->in_enable)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1182 SET_SENSITIVE("xfofs_lockin_radiobutton", FALSE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1183 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1184 SET_SENSITIVE("xfofs_custom_spin", fc->ofs_type == FC_OFFSET_CUSTOM); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1185 SET_SPIN ("xfofs_custom_spin", xfade_cfg_offset(fc)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1186 SET_SPIN ("xftfo_silence_spin", xfade_cfg_offset(fc)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1187 SET_SPIN ("xftfoi_silence_spin", xfade_cfg_offset(fc)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1188 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1189 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1190 checking = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1191 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1192 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1193 /*-- crossfader callbacks ---------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1194 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1195 void on_xf_buffer_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1196 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1197 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1198 cfg->mix_size_ms = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1199 check_crossfader_dependencies(NONE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1200 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1201 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1202 void on_xf_autobuf_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1203 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1204 cfg->mix_size_auto = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1205 check_crossfader_dependencies(XF_MIX_SIZE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1206 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1207 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1208 /* - config/type - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1209 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1210 void xf_config_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1211 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1212 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1213 cfg->xf_index = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1214 check_crossfader_dependencies(ANY & ~XF_CONFIG); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1215 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1216 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1217 void xf_type_cb(GtkWidget *widget, gint index) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1218 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1219 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1220 cfg->fc[cfg->xf_index].type = index; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1221 check_crossfader_dependencies(ANY & ~XF_CONFIG); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1222 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1223 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1224 /* - flush - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1225 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1226 void on_xftfp_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1227 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1228 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1229 cfg->fc[cfg->xf_index].flush_pause_enable |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1230 = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1231 check_crossfader_dependencies(XF_FLUSH|XF_MIX_SIZE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1232 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1233 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1234 void on_xftfp_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1235 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1236 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1237 cfg->fc[cfg->xf_index].flush_pause_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1238 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1239 check_crossfader_dependencies(XF_FLUSH); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1240 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1241 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1242 void on_xftffi_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1243 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1244 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1245 cfg->fc[cfg->xf_index].flush_in_enable |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1246 = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1247 check_crossfader_dependencies(XF_FLUSH|XF_OFFSET|XF_FADEOUT|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1248 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1249 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1250 void on_xftffi_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1251 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1252 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1253 cfg->fc[cfg->xf_index].flush_in_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1254 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1255 check_crossfader_dependencies(XF_FLUSH); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1256 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1257 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1258 void on_xftffi_volume_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1259 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1260 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1261 cfg->fc[cfg->xf_index].flush_in_volume |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1262 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1263 check_crossfader_dependencies(XF_FLUSH); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1264 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1265 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1266 /* - pause - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1267 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1268 void on_pause_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1269 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1270 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1271 cfg->fc[cfg->xf_index].pause_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1272 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1273 check_crossfader_dependencies(XF_MIX_SIZE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1274 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1275 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1276 /* - simple - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1277 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1278 void on_simple_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1279 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1280 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1281 cfg->fc[cfg->xf_index].simple_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1282 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1283 check_crossfader_dependencies(XF_MIX_SIZE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1284 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1285 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1286 /* - crossfade-fadeout - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1287 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1288 void on_fadeout_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1289 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1290 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1291 cfg->fc[cfg->xf_index].out_enable |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1292 = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1293 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET|XF_FADEOUT|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1294 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1295 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1296 void on_fadeout_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1297 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1298 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1299 cfg->fc[cfg->xf_index].out_len_ms |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1300 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1301 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1302 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1303 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1304 void on_fadeout_volume_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1305 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1306 cfg->fc[cfg->xf_index].out_volume |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1307 = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1308 check_crossfader_dependencies(XF_OFFSET|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1309 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1310 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1311 /* - crossfade-offset - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1312 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1313 void on_xfofs_none_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1314 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1315 if(checking || !gtk_toggle_button_get_active(togglebutton)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1316 cfg->fc[cfg->xf_index].ofs_type = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1317 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1318 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1319 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1320 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1321 void on_xfofs_none_radiobutton_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1322 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1323 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1324 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_NONE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1325 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1326 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1327 void on_xfofs_lockout_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1328 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1329 if(checking || !gtk_toggle_button_get_active(togglebutton)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1330 cfg->fc[cfg->xf_index].ofs_type = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1331 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1332 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1333 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1334 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1335 void on_xfofs_lockout_radiobutton_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1336 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1337 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1338 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_LOCK_OUT; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1339 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1340 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1341 void on_xfofs_lockin_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1342 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1343 if(checking || !gtk_toggle_button_get_active(togglebutton)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1344 cfg->fc[cfg->xf_index].ofs_type = FC_OFFSET_LOCK_IN; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1345 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_LOCK_IN; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1346 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1347 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1348 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1349 void on_xfofs_lockin_radiobutton_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1350 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1351 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1352 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_LOCK_IN; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1353 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1354 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1355 void on_xfofs_custom_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1356 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1357 if(checking || !gtk_toggle_button_get_active(togglebutton)) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1358 cfg->fc[cfg->xf_index].ofs_type = FC_OFFSET_CUSTOM; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1359 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_CUSTOM; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1360 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1361 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1362 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1363 void on_xfofs_custom_radiobutton_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1364 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1365 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1366 cfg->fc[cfg->xf_index].ofs_type_wanted = FC_OFFSET_CUSTOM; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1367 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1368 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1369 void on_xfofs_custom_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1370 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1371 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1372 cfg->fc[cfg->xf_index].ofs_custom_ms = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1373 check_crossfader_dependencies(XF_MIX_SIZE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1374 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1375 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1376 /* - crossfade-fadein - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1377 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1378 void on_fadein_lock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1379 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1380 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1381 cfg->fc[cfg->xf_index].in_locked = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1382 check_crossfader_dependencies(XF_OFFSET|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1383 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1384 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1385 void on_fadein_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1386 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1387 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1388 cfg->fc[cfg->xf_index].in_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1389 check_crossfader_dependencies(XF_OFFSET|XF_FADEIN); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1390 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1391 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1392 void on_fadein_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1393 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1394 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1395 cfg->fc[cfg->xf_index].in_len_ms = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1396 check_crossfader_dependencies(XF_MIX_SIZE|XF_OFFSET); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1397 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1398 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1399 void on_fadein_volume_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1400 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1401 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1402 cfg->fc[cfg->xf_index].in_volume = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1403 check_crossfader_dependencies(NONE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1404 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1405 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1406 /*-- fadein -----------------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1407 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1408 /* signal set to on_fadein_length_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1409 /* signal set to on_fadein_volume_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1410 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1411 /*-- fadeout ----------------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1412 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1413 /* signal set to on_fadeout_length_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1414 /* signal set to on_fadeout_volume_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1415 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1416 /*-- fadeout/fadein ---------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1417 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1418 /* signal set to on_fadeout_length_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1419 /* signal set to on_xfofs_custom_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1420 /* signal set to on_fadeout_volume_spin_changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1421 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1422 /*** gap killer **************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1423 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1424 void check_gapkiller_dependencies() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1425 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1426 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1427 checking = TRUE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1428 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1429 SET_SENSITIVE("lgap_length_spin", cfg->gap_lead_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1430 SET_SENSITIVE("lgap_level_spin", cfg->gap_lead_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1431 SET_SENSITIVE("tgap_enable_check", !cfg->gap_trail_locked); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1432 SET_SENSITIVE("tgap_length_spin", !cfg->gap_trail_locked && cfg->gap_trail_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1433 SET_SENSITIVE("tgap_level_spin", !cfg->gap_trail_locked && cfg->gap_trail_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1434 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1435 if(cfg->gap_trail_locked) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1436 SET_TOGGLE("tgap_enable_check", cfg->gap_lead_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1437 SET_SPIN ("tgap_length_spin", cfg->gap_lead_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1438 SET_SPIN ("tgap_level_spin", cfg->gap_lead_level); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1439 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1440 else { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1441 SET_TOGGLE("tgap_enable_check", cfg->gap_trail_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1442 SET_SPIN ("tgap_length_spin", cfg->gap_trail_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1443 SET_SPIN ("tgap_level_spin", cfg->gap_trail_level); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1444 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1445 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1446 if(cfg->mix_size_auto) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1447 SET_SPIN("xf_buffer_spin", xfade_mix_size_ms(cfg)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1448 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1449 checking = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1450 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1451 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1452 /*-- gapkiller callbacks ----------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1453 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1454 void on_lgap_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1455 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1456 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1457 cfg->gap_lead_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1458 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1459 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1460 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1461 void on_lgap_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1462 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1463 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1464 cfg->gap_lead_len_ms = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1465 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1466 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1467 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1468 void on_lgap_level_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1469 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1470 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1471 cfg->gap_lead_level = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1472 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1473 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1474 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1475 void on_tgap_lock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1476 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1477 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1478 cfg->gap_trail_locked = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1479 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1480 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1481 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1482 void on_tgap_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1483 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1484 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1485 cfg->gap_trail_enable = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1486 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1487 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1488 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1489 void on_tgap_length_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1490 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1491 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1492 cfg->gap_trail_len_ms = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1493 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1494 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1495 void on_tgap_level_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1496 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1497 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1498 cfg->gap_trail_level = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1499 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1500 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1501 /*** misc ********************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1502 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1503 void check_misc_dependencies() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1504 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1505 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1506 checking = TRUE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1507 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1508 if(cfg->mix_size_auto) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1509 SET_SPIN("xf_buffer_spin", xfade_mix_size_ms(cfg)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1510 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1511 SET_SENSITIVE("moth_opmaxused_spin", cfg->enable_op_max_used); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1512 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1513 checking = FALSE; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1514 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1515 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1516 /*-- misc callbacks ---------------------------------------------------------*/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1517 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1518 void on_config_mixopt_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1519 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1520 SET_SENSITIVE("mixopt_reverse_check", gtk_toggle_button_get_active(togglebutton)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1521 SET_SENSITIVE("mixopt_software_check", gtk_toggle_button_get_active(togglebutton)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1522 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1523 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1524 void on_moth_songchange_spin_changed(GtkEditable *editable, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1525 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1526 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1527 cfg->songchange_timeout = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1528 check_misc_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1529 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1530 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1531 void on_moth_opmaxused_check_toggled(GtkToggleButton *togglebutton, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1532 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1533 if(checking) return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1534 cfg->enable_op_max_used = gtk_toggle_button_get_active(togglebutton); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1535 check_misc_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1536 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1537 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1538 /*** presets *****************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1539 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1540 void on_presets_list_click_column(GtkCList *clist, gint column, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1541 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1542 DEBUG(("*** column=%d\n", column)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1543 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1544 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1545 /*** main config *************************************************************/ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1546 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1547 void on_config_apply_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1548 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1549 GtkWidget *widget; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1550 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1551 /* get current notebook page */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1552 if((widget = lookup_widget(config_win, "config_notebook"))) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1553 cfg->page = gtk_notebook_get_current_page(GTK_NOTEBOOK(widget)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1554 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1555 /* output method */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1556 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1557 /* sample rate */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1558 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1559 /* output method: plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1560 op_config.throttle_enable = GET_TOGGLE("op_throttle_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1561 op_config.max_write_enable = GET_TOGGLE("op_maxblock_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1562 op_config.max_write_len = GET_SPIN ("op_maxblock_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1563 op_config.force_reopen = GET_TOGGLE("op_forcereopen_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1564 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1565 xfade_save_plugin_config(&cfg->op_config_string, cfg->op_name, &op_config); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1566 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1567 /* output method: none: */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1568 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1569 /* effects: pre-mixing effect plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1570 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1571 /* effects: volume normalizer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1572 cfg->volnorm_target = GET_SPIN ("volnorm_target_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1573 cfg->volnorm_use_qa = GET_TOGGLE("volnorm_quantaudio_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1574 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1575 /* crossfader */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1576 cfg->mix_size_auto = GET_TOGGLE("xf_autobuf_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1577 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1578 /* gap killer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1579 cfg->gap_lead_enable = GET_TOGGLE("lgap_enable_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1580 cfg->gap_lead_len_ms = GET_SPIN ("lgap_length_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1581 cfg->gap_lead_level = GET_SPIN ("lgap_level_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1582 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1583 cfg->gap_trail_locked = GET_TOGGLE("tgap_lock_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1584 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1585 cfg->gap_crossing = GET_TOGGLE("gadv_crossing_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1586 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1587 /* misc */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1588 cfg->enable_debug = GET_TOGGLE("debug_stderr_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1589 cfg->enable_monitor = GET_TOGGLE("debug_monitor_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1590 cfg->enable_mixer = GET_TOGGLE("mixopt_enable_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1591 cfg->mixer_reverse = GET_TOGGLE("mixopt_reverse_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1592 cfg->mixer_software = GET_TOGGLE("mixopt_software_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1593 cfg->preload_size_ms = GET_SPIN ("moth_preload_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1594 cfg->album_detection = GET_TOGGLE("noxf_album_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1595 cfg->no_xfade_if_same_file = GET_TOGGLE("noxf_samefile_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1596 cfg->enable_http_workaround = GET_TOGGLE("moth_httpworkaround_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1597 cfg->op_max_used_ms = GET_SPIN ("moth_opmaxused_spin"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1598 cfg->output_keep_opened = GET_TOGGLE("moth_outputkeepopened_check"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1599 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1600 /* presets */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1601 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1602 /* lock buffer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1603 g_static_mutex_lock(&buffer_mutex); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1604 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1605 /* free existing strings */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1606 if(config->op_config_string) g_free(config->op_config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1607 if(config->op_name) g_free(config->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1608 if(config->ep_name) g_free(config->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1609 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1610 /* copy current settings (dupping the strings) */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1611 *config = *cfg; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1612 config->op_config_string = g_strdup(cfg->op_config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1613 config->op_name = g_strdup(cfg->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1614 config->ep_name = g_strdup(cfg->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1615 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1616 /* tell the engine that the config has changed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1617 xfade_realize_config(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1618 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1619 /* unlock buffer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1620 g_static_mutex_unlock(&buffer_mutex); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1621 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1622 /* save configuration */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1623 xfade_save_config(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1624 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1625 /* show/hide monitor win depending on config->enable_monitor */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1626 xfade_check_monitor_win(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1627 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1628 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1629 void on_config_ok_clicked(GtkButton *button, gpointer user_data) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1630 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1631 /* apply and save config */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1632 on_config_apply_clicked(button, user_data); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1633 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1634 /* close and destroy window */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1635 gtk_widget_destroy(config_win); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1636 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1637 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1638 void xfade_configure() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1639 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1640 GtkWidget *widget; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1641 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1642 if(!config_win) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1643 /* create */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1644 if(!(config_win = create_config_win())) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1645 DEBUG(("[crossfade] plugin_configure: error creating window!\n")); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1646 return; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1647 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1648 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1649 /* update config_win when window is destroyed */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1650 gtk_signal_connect(GTK_OBJECT(config_win), "destroy", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1651 GTK_SIGNAL_FUNC(gtk_widget_destroyed), &config_win); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1652 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1653 /* free any strings that might be left in our local copy of the config */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1654 if(cfg->op_config_string) g_free(cfg->op_config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1655 if(cfg->op_name) g_free(cfg->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1656 if(cfg->ep_name) g_free(cfg->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1657 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1658 /* copy current settings (dupping the strings) */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1659 *cfg = *config; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1660 cfg->op_config_string = g_strdup(config->op_config_string); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1661 cfg->op_name = g_strdup(config->op_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1662 cfg->ep_name = g_strdup(config->ep_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1663 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1664 /* go to remembered notebook page */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1665 if((widget = lookup_widget(config_win, "config_notebook"))) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1666 gtk_notebook_set_page(GTK_NOTEBOOK(widget), config->page); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1667 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1668 /* output: resampling rate */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1669 if((widget = lookup_widget(config_win, "resampling_rate_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1670 GtkWidget *menu = gtk_menu_new(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1671 GtkWidget *item; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1672 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1673 item = gtk_menu_item_new_with_label("44100 Hz"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1674 gtk_signal_connect(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(resampling_rate_cb), (gpointer)44100); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1675 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1676 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1677 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1678 item = gtk_menu_item_new_with_label("48000 Hz"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1679 gtk_signal_connect(GTK_OBJECT(item), "activate", GTK_SIGNAL_FUNC(resampling_rate_cb), (gpointer)48000); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1680 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1681 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1682 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1683 gtk_option_menu_set_menu(GTK_OPTION_MENU(widget), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1684 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1685 switch(cfg->output_rate) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1686 default: |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1687 DEBUG(("[crossfade] plugin_configure: WARNING: invalid output sample rate (%d)!\n", cfg->output_rate)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1688 DEBUG(("[crossfade] plugin_configure: ... using default of 44100\n")); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1689 cfg->output_rate = 44100; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1690 case 44100: gtk_option_menu_set_history(GTK_OPTION_MENU(widget), 0); break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1691 case 48000: gtk_option_menu_set_history(GTK_OPTION_MENU(widget), 1); break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1692 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1693 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1694 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1695 /* output: resampling quality (libsamplerate setting) */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1696 #ifdef HAVE_LIBSAMPLERATE |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1697 if((widget = lookup_widget(config_win, "resampling_quality_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1698 GtkWidget *menu = gtk_menu_new(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1699 GtkWidget *item; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1700 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1701 GtkTooltips *tooltips = (GtkTooltips *)gtk_object_get_data(GTK_OBJECT(config_win), "tooltips"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1702 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1703 int converter_type; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1704 const char *name, *description; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1705 for(converter_type = 0; (name = src_get_name(converter_type)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1706 converter_type++) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1707 description = src_get_description(converter_type); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1708 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1709 item = gtk_menu_item_new_with_label(name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1710 gtk_tooltips_set_tip(tooltips, item, description, NULL); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1711 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1712 gtk_signal_connect(GTK_OBJECT(item), "activate", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1713 GTK_SIGNAL_FUNC(resampling_quality_cb), (gpointer)converter_type); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1714 gtk_widget_show(item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1715 gtk_menu_append(GTK_MENU(menu), item); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1716 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1717 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1718 gtk_option_menu_set_menu (GTK_OPTION_MENU(widget), menu); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1719 gtk_option_menu_set_history(GTK_OPTION_MENU(widget), cfg->output_quality); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1720 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1721 #else |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1722 HIDE("resampling_quality_hbox"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1723 HIDE("resampling_quality_optionmenu"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1724 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1725 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1726 /* output method: plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1727 xfade_load_plugin_config(cfg->op_config_string, cfg->op_name, &op_config); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1728 SET_TOGGLE ("op_throttle_check", op_config.throttle_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1729 SET_TOGGLE ("op_maxblock_check", op_config.max_write_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1730 SET_SPIN ("op_maxblock_spin", op_config.max_write_len); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1731 SET_SENSITIVE("op_maxblock_spin", op_config.max_write_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1732 SET_TOGGLE ("op_forcereopen_check", op_config.force_reopen); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1733 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1734 if((widget = lookup_widget(config_win, "op_plugin_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1735 OutputPlugin *op = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1736 if((op_index = scan_plugins(widget, cfg->op_name)) >= 0) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1737 gtk_option_menu_set_history(GTK_OPTION_MENU(widget), op_index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1738 op = g_list_nth_data(get_output_list(), op_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1739 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1740 SET_SENSITIVE("op_configure_button", op && (op->configure != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1741 SET_SENSITIVE("op_about_button", op && (op->about != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1742 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1743 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1744 /* output method: none */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1745 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1746 /* effects: pre-mixing effect plugin */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1747 if((widget = lookup_widget(config_win, "ep_plugin_optionmenu"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1748 EffectPlugin *ep = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1749 if((ep_index = scan_effect_plugins(widget, cfg->ep_name)) >= 0) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1750 gtk_option_menu_set_history(GTK_OPTION_MENU(widget), ep_index); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1751 ep = g_list_nth_data(get_effect_list(), ep_index); /* XMMS */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1752 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1753 SET_SENSITIVE("ep_configure_button", ep && (ep->configure != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1754 SET_SENSITIVE("ep_about_button", ep && (ep->about != NULL)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1755 SET_TOGGLE ("ep_enable_check", cfg->ep_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1756 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1757 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1758 /* effects: volume normalizer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1759 SET_TOGGLE("volnorm_enable_check", cfg->volnorm_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1760 SET_TOGGLE("volnorm_quantaudio_check", cfg->volnorm_use_qa); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1761 SET_SPIN ("volnorm_target_spin", cfg->volnorm_target); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1762 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1763 check_effects_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1764 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1765 /* crossfader */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1766 create_crossfader_config_menu(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1767 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1768 if((cfg->xf_index < 0) || (cfg->xf_index >= MAX_FADE_CONFIGS)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1769 DEBUG(("[crossfade] plugin_configure: crossfade index out of range (%d)!\n", cfg->xf_index)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1770 cfg->xf_index = CLAMP(cfg->xf_index, 0, MAX_FADE_CONFIGS); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1771 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1772 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1773 check_crossfader_dependencies(ANY); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1774 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1775 /* gap killer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1776 SET_TOGGLE ("lgap_enable_check", cfg->gap_lead_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1777 SET_SPIN ("lgap_length_spin", cfg->gap_lead_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1778 SET_SPIN ("lgap_level_spin", cfg->gap_lead_level); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1779 SET_TOGGLE ("tgap_lock_check", cfg->gap_trail_locked); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1780 SET_TOGGLE ("tgap_enable_check", cfg->gap_trail_enable); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1781 SET_SPIN ("tgap_length_spin", cfg->gap_trail_len_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1782 SET_SPIN ("tgap_level_spin", cfg->gap_trail_level); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1783 SET_TOGGLE ("gadv_crossing_check", cfg->gap_crossing); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1784 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1785 check_gapkiller_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1786 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1787 /* misc */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1788 SET_TOGGLE("debug_stderr_check", cfg->enable_debug); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1789 SET_TOGGLE("debug_monitor_check", cfg->enable_monitor); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1790 SET_TOGGLE("mixopt_enable_check", cfg->enable_mixer); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1791 SET_TOGGLE("mixopt_reverse_check", cfg->mixer_reverse); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1792 SET_TOGGLE("mixopt_software_check", cfg->mixer_software); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1793 SET_SPIN ("moth_songchange_spin", cfg->songchange_timeout); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1794 SET_SPIN ("moth_preload_spin", cfg->preload_size_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1795 SET_TOGGLE("noxf_album_check", cfg->album_detection); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1796 SET_TOGGLE("noxf_samefile_check", cfg->album_detection); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1797 SET_TOGGLE("moth_httpworkaround_check", cfg->enable_http_workaround); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1798 SET_TOGGLE("moth_opmaxused_check", cfg->enable_op_max_used); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1799 SET_SPIN ("moth_opmaxused_spin", cfg->op_max_used_ms); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1800 SET_TOGGLE("moth_outputkeepopened_check", cfg->output_keep_opened); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1801 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1802 check_misc_dependencies(); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1803 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1804 /* presets */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1805 if((set_wgt = lookup_widget(config_win, "presets_list_list"))) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1806 GList *item; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1807 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1808 for(item = config->presets; item; item = g_list_next(item)) { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1809 gchar *name = (gchar *)item->data; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1810 gchar *text[] = {name, "Default", "No"}; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1811 gtk_clist_append(GTK_CLIST(set_wgt), text); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1812 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1813 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1814 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1815 /* show window near mouse pointer */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1816 gtk_window_set_position(GTK_WINDOW(config_win), GTK_WIN_POS_MOUSE); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1817 gtk_widget_show(config_win); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1818 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1819 else |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1820 /* bring window to front */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1821 gdk_window_raise(config_win->window); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1822 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1823 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1824 void xfade_about() |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1825 { |
336
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1826 static GtkWidget *dialog; |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1827 |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1828 if (dialog != NULL) |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1829 return; |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1830 |
336
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1831 dialog = xmms_show_message( |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1832 _("About crossfade"), |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1833 _("Audacious crossfading plugin\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1834 "Code adapted for Audacious usage by Tony Vroon <chainsaw@gentoo.org> from:\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1835 "XMMS Crossfade Plugin "VERSION"\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1836 "Copyright (C) 2000-2004 Peter Eisenlohr <peter@eisenlohr.org>\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1837 "\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1838 "based on the original OSS Output Plugin Copyright (C) 1998-2000\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1839 "Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1840 "\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1841 "This program is free software; you can redistribute it and/or modify\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1842 "it under the terms of the GNU General Public License as published by\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1843 "the Free Software Foundation; either version 2 of the License, or\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1844 "(at your option) any later version.\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1845 "\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1846 "This program is distributed in the hope that it will be useful,\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1847 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1848 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1849 "GNU General Public License for more details.\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1850 "\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1851 "You should have received a copy of the GNU General Public License\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1852 "along with this program; if not, write to the Free Software\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1853 "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,\n" |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1854 "USA."),_("OK"), FALSE, NULL, NULL); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1855 |
336
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1856 gtk_signal_connect(GTK_OBJECT(dialog), "destroy", |
51b8f124936e
[svn] And that concludes the story of the whacky OK button. Thank you.
chainsaw
parents:
310
diff
changeset
|
1857 GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dialog); |
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1858 } |