Mercurial > audlegacy
annotate Plugins/Output/crossfade/configure.c @ 310:0b993b8d7806 trunk
[svn] Convert to configdb usage.
author | chainsaw |
---|---|
date | Sat, 17 Dec 2005 12:52:02 -0800 |
parents | 08e4eb900f21 |
children | 51b8f124936e |
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" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
33 #include "interface.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
|
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> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
46 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
47 #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
|
48 # 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
|
49 #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
|
50 |
5fd398406cf7
[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 |
5fd398406cf7
[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 #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
|
53 { 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
|
54 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
|
55 |
5fd398406cf7
[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 #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
|
57 { 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
|
58 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
|
59 |
5fd398406cf7
[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 |
5fd398406cf7
[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 #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
|
62 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
|
63 |
5fd398406cf7
[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 #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
|
65 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
|
66 |
5fd398406cf7
[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 #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
|
68 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
|
69 |
5fd398406cf7
[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 |
5fd398406cf7
[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 #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
|
72 { 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
|
73 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
|
74 |
5fd398406cf7
[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 #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
|
76 { 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
|
77 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
|
78 |
5fd398406cf7
[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 #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
|
80 { 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
|
81 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
|
82 |
5fd398406cf7
[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 #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
|
84 { 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
|
85 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
|
86 |
5fd398406cf7
[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 #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
|
88 { 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
|
89 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
|
90 |
5fd398406cf7
[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 |
5fd398406cf7
[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 #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
|
93 ((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
|
94 && 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
|
95 |
5fd398406cf7
[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 #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
|
97 ((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
|
98 && 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
|
99 |
5fd398406cf7
[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 #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
|
101 ((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
|
102 ? 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
|
103 |
5fd398406cf7
[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 |
5fd398406cf7
[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 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
|
106 static GtkWidget *about_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
|
107 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
|
108 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
|
109 |
5fd398406cf7
[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 /* 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
|
111 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
|
112 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
|
113 |
5fd398406cf7
[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 /* 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
|
115 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
|
116 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
|
117 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
|
118 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
|
119 |
5fd398406cf7
[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 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
|
122 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
|
123 |
5fd398406cf7
[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 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
|
127 { |
5fd398406cf7
[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 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
|
129 } |
5fd398406cf7
[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 #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
|
134 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
|
135 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
|
136 { |
5fd398406cf7
[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 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
|
138 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
|
139 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
|
140 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
|
141 |
5fd398406cf7
[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 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
|
143 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
|
144 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
|
145 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
|
146 } |
5fd398406cf7
[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 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
|
148 |
5fd398406cf7
[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 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
|
150 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
|
151 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
|
152 } |
5fd398406cf7
[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 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
|
155 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
|
156 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
|
157 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
|
158 } |
5fd398406cf7
[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 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
|
161 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
|
162 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
|
163 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
|
164 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
|
165 } |
5fd398406cf7
[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 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
|
167 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
|
168 |
5fd398406cf7
[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 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
|
170 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
|
171 |
5fd398406cf7
[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 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
|
173 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
|
174 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
|
175 } |
5fd398406cf7
[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 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
|
178 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
|
179 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
|
180 |
5fd398406cf7
[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 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
|
182 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
|
183 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
|
184 *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
|
185 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
|
186 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
|
187 } |
5fd398406cf7
[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 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
|
192 } |
5fd398406cf7
[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 #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
|
194 |
5fd398406cf7
[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 static void |
310 | 196 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
|
197 { |
5fd398406cf7
[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 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
|
199 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
|
200 |
310 | 201 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
|
202 |
310 | 203 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
|
204 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
|
205 |
5fd398406cf7
[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 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
|
207 "%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
|
208 &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
|
209 &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
|
210 &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
|
211 &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
|
212 &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
|
213 &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
|
214 &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
|
215 &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
|
216 &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
|
217 &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
|
218 &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
|
219 &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
|
220 &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
|
221 &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
|
222 &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
|
223 &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
|
224 &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
|
225 &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
|
226 |
5fd398406cf7
[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 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
|
228 } |
5fd398406cf7
[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 static void |
310 | 231 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
|
232 { |
5fd398406cf7
[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 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
|
234 |
310 | 235 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
|
236 |
5fd398406cf7
[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 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
|
238 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
|
239 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
|
240 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
|
241 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
|
242 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
|
243 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
|
244 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
|
245 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
|
246 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
|
247 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
|
248 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
|
249 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
|
250 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
|
251 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
|
252 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
|
253 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
|
254 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
|
255 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
|
256 |
5fd398406cf7
[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 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
|
258 |
310 | 259 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
|
260 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
|
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
|
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 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
|
264 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
|
265 { |
5fd398406cf7
[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 #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
|
267 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
|
268 #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
|
269 gchar *section = "Crossfade"; |
310 | 270 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
|
271 |
310 | 272 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
|
273 |
310 | 274 /* config items used in v0.1 */ |
275 bmp_cfg_db_get_string(db, section, "output_plugin", &config->op_name); | |
276 bmp_cfg_db_get_string(db, section, "op_config_string", &config->op_config_string); | |
277 bmp_cfg_db_get_int(db, section, "buffer_size", &config->mix_size_ms); | |
278 bmp_cfg_db_get_int(db, section, "sync_size", &config->sync_size_ms); | |
279 bmp_cfg_db_get_int(db, section, "preload_size", &config->preload_size_ms); | |
280 bmp_cfg_db_get_int(db, section, "songchange_timeout", &config->songchange_timeout); | |
281 bmp_cfg_db_get_bool(db, section, "enable_mixer", &config->enable_mixer); | |
282 bmp_cfg_db_get_bool(db, section, "mixer_reverse", &config->mixer_reverse); | |
283 bmp_cfg_db_get_bool(db, section, "enable_debug", &config->enable_debug); | |
284 bmp_cfg_db_get_bool(db, section, "enable_monitor", &config->enable_monitor); | |
285 | |
286 /* config items introduced by v0.2 */ | |
287 bmp_cfg_db_get_bool(db, section, "gap_lead_enable", &config->gap_lead_enable); | |
288 bmp_cfg_db_get_int(db, section, "gap_lead_len_ms", &config->gap_lead_len_ms); | |
289 bmp_cfg_db_get_int(db, section, "gap_lead_level", &config->gap_lead_level); | |
290 bmp_cfg_db_get_bool(db, section, "gap_trail_enable", &config->gap_trail_enable); | |
291 bmp_cfg_db_get_int(db, section, "gap_trail_len_ms", &config->gap_trail_len_ms); | |
292 bmp_cfg_db_get_int(db, section, "gap_trail_level", &config->gap_trail_level); | |
293 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
|
294 |
310 | 295 /* config items introduced by v0.2.1 */ |
296 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
|
297 |
310 | 298 /* config items introduced by v0.2.3 */ |
299 bmp_cfg_db_get_bool(db, section, "album_detection", &config->album_detection); | |
300 | |
301 /* config items introduced by v0.2.4 */ | |
302 bmp_cfg_db_get_bool(db, section, "http_workaround", &config->enable_http_workaround); | |
303 bmp_cfg_db_get_bool(db, section, "enable_op_max_used", &config->enable_op_max_used); | |
304 bmp_cfg_db_get_int(db, section, "op_max_used_ms", &config->op_max_used_ms); | |
305 | |
306 /* config items introduced by v0.2.6 */ | |
307 bmp_cfg_db_get_string(db, section, "effect_plugin", &config->ep_name); | |
308 bmp_cfg_db_get_bool(db, section, "effect_enable", &config->ep_enable); | |
309 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
|
310 |
310 | 311 /* config items introduced by v0.3.0 */ |
312 bmp_cfg_db_get_bool(db, section, "volnorm_enable", &config->volnorm_enable); | |
313 bmp_cfg_db_get_bool(db, section, "volnorm_use_qa", &config->volnorm_use_qa); | |
314 bmp_cfg_db_get_int(db, section, "volnorm_target", &config->volnorm_target); | |
315 bmp_cfg_db_get_bool(db, section, "output_keep_opened", &config->output_keep_opened); | |
316 bmp_cfg_db_get_bool(db, section, "mixer_software", &config->mixer_software); | |
317 bmp_cfg_db_get_int(db, section, "mixer_vol_left", &config->mixer_vol_left); | |
318 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
|
319 |
310 | 320 /* config items introduced by v0.3.2 */ |
321 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
|
322 |
310 | 323 /* config items introduced by v0.3.3 */ |
324 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
|
325 |
310 | 326 /* config items introduced by v0.3.6 */ |
327 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
|
328 |
310 | 329 /* fade configs */ |
330 read_fade_config(db, section, "fc_xfade", &config->fc[FADE_CONFIG_XFADE]); | |
331 read_fade_config(db, section, "fc_manual", &config->fc[FADE_CONFIG_MANUAL]); | |
332 read_fade_config(db, section, "fc_album", &config->fc[FADE_CONFIG_ALBUM]); | |
333 read_fade_config(db, section, "fc_start", &config->fc[FADE_CONFIG_START]); | |
334 read_fade_config(db, section, "fc_stop", &config->fc[FADE_CONFIG_STOP]); | |
335 read_fade_config(db, section, "fc_eop", &config->fc[FADE_CONFIG_EOP]); | |
336 read_fade_config(db, section, "fc_seek", &config->fc[FADE_CONFIG_SEEK]); | |
337 read_fade_config(db, section, "fc_pause", &config->fc[FADE_CONFIG_PAUSE]); | |
338 | |
339 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
|
340 |
5fd398406cf7
[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 #ifdef PRESET_SUPPORT |
301
08e4eb900f21
[svn] Config file paths should be ~/.audacious and not ~/.xmms
chainsaw
parents:
262
diff
changeset
|
342 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
|
343 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
|
344 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
|
345 #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
|
346 } |
5fd398406cf7
[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 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
|
349 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
|
350 { |
5fd398406cf7
[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 gchar *section = "Crossfade"; |
310 | 352 ConfigDb *db; |
353 | |
354 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
|
355 |
310 | 356 /* obsolete config items */ |
357 bmp_cfg_db_unset_key(db, section, "underrun_pct"); | |
358 bmp_cfg_db_unset_key(db, section, "enable_crossfade"); | |
359 bmp_cfg_db_unset_key(db, section, "enable_gapkiller"); | |
360 bmp_cfg_db_unset_key(db, section, "mixer_use_master"); | |
361 bmp_cfg_db_unset_key(db, section, "late_effect"); | |
362 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
|
363 |
310 | 364 /* config items used in v0.1 */ |
365 bmp_cfg_db_set_string(db, section, "output_plugin", config->op_name ? config->op_name : DEFAULT_OP_NAME); | |
366 bmp_cfg_db_set_string(db, section, "op_config_string", config->op_config_string ? config->op_config_string : DEFAULT_OP_CONFIG_STRING); | |
367 bmp_cfg_db_set_int(db, section, "buffer_size", config->mix_size_ms); | |
368 bmp_cfg_db_set_int(db, section, "sync_size", config->sync_size_ms); | |
369 bmp_cfg_db_set_int(db, section, "preload_size", config->preload_size_ms); | |
370 bmp_cfg_db_set_int(db, section, "songchange_timeout", config->songchange_timeout); | |
371 bmp_cfg_db_set_bool(db, section, "enable_mixer", config->enable_mixer); | |
372 bmp_cfg_db_set_bool(db, section, "mixer_reverse", config->mixer_reverse); | |
373 bmp_cfg_db_set_bool(db, section, "enable_debug", config->enable_debug); | |
374 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
|
375 |
310 | 376 /* config items introduced by v0.2 */ |
377 bmp_cfg_db_set_bool(db, section, "gap_lead_enable", config->gap_lead_enable); | |
378 bmp_cfg_db_set_int(db, section, "gap_lead_len_ms", config->gap_lead_len_ms); | |
379 bmp_cfg_db_set_int(db, section, "gap_lead_level", config->gap_lead_level); | |
380 bmp_cfg_db_set_bool(db, section, "gap_trail_enable", config->gap_trail_enable); | |
381 bmp_cfg_db_set_int(db, section, "gap_trail_len_ms", config->gap_trail_len_ms); | |
382 bmp_cfg_db_set_int(db, section, "gap_trail_level", config->gap_trail_level); | |
383 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
|
384 |
310 | 385 /* config items introduced by v0.2.1 */ |
386 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
|
387 |
310 | 388 /* config items introduced by v0.2.3 */ |
389 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
|
390 |
310 | 391 /* config items introduced by v0.2.4 */ |
392 bmp_cfg_db_set_bool(db, section, "http_workaround", config->enable_http_workaround); | |
393 bmp_cfg_db_set_bool(db, section, "enable_op_max_used", config->enable_op_max_used); | |
394 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
|
395 |
310 | 396 /* config items introduced by v0.2.6 */ |
397 bmp_cfg_db_set_string(db, section, "effect_plugin", config->ep_name ? config->ep_name : DEFAULT_EP_NAME); | |
398 bmp_cfg_db_set_bool(db, section, "effect_enable", config->ep_enable); | |
399 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
|
400 |
310 | 401 /* 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
|
402 #ifdef VOLUME_NORMALIZER |
310 | 403 bmp_cfg_db_set_bool(db, section, "volnorm_enable", config->volnorm_enable); |
404 bmp_cfg_db_set_bool(db, section, "volnorm_use_qa", config->volnorm_use_qa); | |
405 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
|
406 #endif |
310 | 407 bmp_cfg_db_set_bool(db, section, "output_keep_opened", config->output_keep_opened); |
408 bmp_cfg_db_set_bool(db, section, "mixer_software", config->mixer_software); | |
409 bmp_cfg_db_set_int(db, section, "mixer_vol_left", config->mixer_vol_left); | |
410 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
|
411 |
310 | 412 /* config items introduced by v0.3.2 */ |
413 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
|
414 |
310 | 415 /* config items introduced by v0.3.2 */ |
416 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
|
417 |
310 | 418 /* config items introduced by v0.3.6 */ |
419 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
|
420 |
310 | 421 /* fade configs */ |
422 write_fade_config(db, section, "fc_xfade", &config->fc[FADE_CONFIG_XFADE]); | |
423 write_fade_config(db, section, "fc_manual", &config->fc[FADE_CONFIG_MANUAL]); | |
424 write_fade_config(db, section, "fc_album", &config->fc[FADE_CONFIG_ALBUM]); | |
425 write_fade_config(db, section, "fc_start", &config->fc[FADE_CONFIG_START]); | |
426 write_fade_config(db, section, "fc_stop", &config->fc[FADE_CONFIG_STOP]); | |
427 write_fade_config(db, section, "fc_eop", &config->fc[FADE_CONFIG_EOP]); | |
428 write_fade_config(db, section, "fc_seek", &config->fc[FADE_CONFIG_SEEK]); | |
429 write_fade_config(db, section, "fc_pause", &config->fc[FADE_CONFIG_PAUSE]); | |
430 | |
431 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
|
432 } |
5fd398406cf7
[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 #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
|
435 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
|
436 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
|
437 { |
5fd398406cf7
[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 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
|
439 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
|
440 |
5fd398406cf7
[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 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
|
442 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
|
443 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
|
444 } |
5fd398406cf7
[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 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
|
447 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
|
448 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
|
449 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
|
450 { |
5fd398406cf7
[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 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
|
452 } |
5fd398406cf7
[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 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
|
455 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
|
456 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
|
457 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
|
458 { |
5fd398406cf7
[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 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
|
460 } |
5fd398406cf7
[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 /*** 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
|
463 |
5fd398406cf7
[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 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
|
465 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
|
466 { |
5fd398406cf7
[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 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
|
468 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
|
469 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
|
470 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
|
471 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
|
472 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
|
473 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
|
474 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
|
475 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
|
476 } |
5fd398406cf7
[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 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
|
478 } |
5fd398406cf7
[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 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
|
481 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
|
482 { |
5fd398406cf7
[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 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
|
484 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
|
485 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
|
486 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
|
487 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
|
488 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
|
489 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
|
490 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
|
491 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
|
492 } |
5fd398406cf7
[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 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
|
494 } |
5fd398406cf7
[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 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
|
497 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
|
498 { |
5fd398406cf7
[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 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
|
500 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
|
501 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
|
502 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
|
503 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
|
504 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
|
505 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
|
506 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
|
507 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
|
508 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
|
509 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
|
510 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
|
511 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
|
512 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
|
513 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
|
514 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
|
515 } |
5fd398406cf7
[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 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
|
517 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
|
518 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
|
519 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
|
520 } |
5fd398406cf7
[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 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
|
522 } |
5fd398406cf7
[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 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
|
525 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
|
526 { |
5fd398406cf7
[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 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
|
528 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
|
529 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
|
530 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
|
531 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
|
532 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
|
533 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
|
534 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
|
535 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
|
536 ? (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
|
537 : (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
|
538 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
|
539 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
|
540 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
|
541 } |
5fd398406cf7
[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 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
|
543 } |
5fd398406cf7
[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 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
|
546 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
|
547 { |
5fd398406cf7
[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 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
|
549 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
|
550 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
|
551 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
|
552 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
|
553 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
|
554 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
|
555 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
|
556 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
|
557 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
|
558 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
|
559 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
|
560 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
|
561 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
|
562 } |
5fd398406cf7
[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 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
|
564 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
|
565 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
|
566 } |
5fd398406cf7
[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 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
|
569 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
|
570 { |
5fd398406cf7
[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 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
|
572 ? 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
|
573 : 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
|
574 } |
5fd398406cf7
[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 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
|
577 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
|
578 { |
5fd398406cf7
[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 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
|
580 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
|
581 ? 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
|
582 : 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
|
583 } |
5fd398406cf7
[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 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
|
586 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
|
587 { |
5fd398406cf7
[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 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
|
589 ? 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
|
590 : 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
|
591 } |
5fd398406cf7
[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 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
|
594 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
|
595 { |
5fd398406cf7
[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 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
|
597 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
|
598 |
5fd398406cf7
[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 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
|
600 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
|
601 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
|
602 |
5fd398406cf7
[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 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
|
604 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
|
605 |
5fd398406cf7
[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 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
|
607 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 |
5fd398406cf7
[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 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
|
610 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
|
611 } |
5fd398406cf7
[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 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
|
613 + 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
|
614 } |
5fd398406cf7
[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 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
|
616 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
|
617 } |
5fd398406cf7
[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 /*** 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
|
620 |
5fd398406cf7
[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 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
|
622 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
|
623 { |
5fd398406cf7
[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 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
|
625 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
|
626 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
|
627 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
|
628 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
|
629 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
|
630 |
5fd398406cf7
[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 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
|
632 } |
5fd398406cf7
[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 /*** 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
|
635 |
5fd398406cf7
[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 /*-- 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
|
637 |
5fd398406cf7
[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 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
|
639 { |
5fd398406cf7
[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 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
|
641 } |
5fd398406cf7
[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 #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
|
644 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
|
645 { |
5fd398406cf7
[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 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
|
647 } |
5fd398406cf7
[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 #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
|
649 |
5fd398406cf7
[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 /*** 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
|
651 |
5fd398406cf7
[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 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
|
653 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
|
654 { |
5fd398406cf7
[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 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
|
656 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
|
657 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
|
658 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
|
659 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
|
660 *++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
|
661 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
|
662 } |
5fd398406cf7
[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 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
|
665 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
|
666 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
|
667 { |
5fd398406cf7
[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 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
|
669 |
5fd398406cf7
[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 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
|
671 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
|
672 |
5fd398406cf7
[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 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
|
674 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
|
675 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
|
676 |
5fd398406cf7
[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 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
|
678 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
|
679 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
|
680 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
|
681 } |
5fd398406cf7
[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 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
|
684 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
|
685 |
5fd398406cf7
[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 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
|
687 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
|
688 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
|
689 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
|
690 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
|
691 |
5fd398406cf7
[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 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
|
693 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
|
694 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
|
695 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
|
696 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
|
697 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
|
698 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
|
699 } |
5fd398406cf7
[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 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
|
701 |
5fd398406cf7
[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 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
|
703 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
|
704 &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
|
705 &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
|
706 &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
|
707 &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
|
708 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
|
709 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
|
710 } |
5fd398406cf7
[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 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
|
713 /* 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
|
714 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
|
715 ||(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
|
716 ||(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
|
717 ||(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
|
718 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
|
719 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
|
720 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
|
721 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
|
722 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
|
723 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
|
724 } |
5fd398406cf7
[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 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
|
726 *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
|
727 } |
5fd398406cf7
[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 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
|
730 } |
5fd398406cf7
[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 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
|
733 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
|
734 |
5fd398406cf7
[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 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
|
736 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
|
737 { |
5fd398406cf7
[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 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
|
739 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
|
740 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
|
741 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
|
742 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
|
743 |
5fd398406cf7
[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 /* 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
|
745 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
|
746 |
5fd398406cf7
[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 /* 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
|
748 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
|
749 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
|
750 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
|
751 |
5fd398406cf7
[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 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
|
753 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
|
754 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
|
755 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
|
756 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
|
757 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
|
758 } |
5fd398406cf7
[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 /* 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
|
761 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
|
762 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
|
763 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
|
764 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
|
765 |
5fd398406cf7
[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 /* 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
|
767 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
|
768 } |
5fd398406cf7
[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 /* 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
|
771 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
|
772 |
5fd398406cf7
[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 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
|
774 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
|
775 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
|
776 } |
5fd398406cf7
[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 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
|
778 } |
5fd398406cf7
[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 /*-- 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
|
781 |
5fd398406cf7
[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 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
|
783 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
|
784 { |
5fd398406cf7
[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 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
|
786 |
5fd398406cf7
[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 /* 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
|
788 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
|
789 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
|
790 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
|
791 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
|
792 |
5fd398406cf7
[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 /* 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
|
794 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
|
795 |
5fd398406cf7
[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 /* 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
|
797 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
|
798 |
5fd398406cf7
[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 /* 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
|
800 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
|
801 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
|
802 ? 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
|
803 |
5fd398406cf7
[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 /* 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
|
805 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
|
806 |
5fd398406cf7
[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 /* 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
|
808 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
|
809 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
|
810 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
|
811 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
|
812 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
|
813 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
|
814 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
|
815 } |
5fd398406cf7
[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 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
|
818 { |
5fd398406cf7
[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 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
|
820 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
|
821 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
|
822 } |
5fd398406cf7
[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 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
|
825 { |
5fd398406cf7
[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 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
|
827 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
|
828 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
|
829 } |
5fd398406cf7
[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 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
|
832 { |
5fd398406cf7
[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 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
|
834 } |
5fd398406cf7
[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 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
|
837 { |
5fd398406cf7
[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 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
|
839 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
|
840 } |
5fd398406cf7
[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 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
|
843 { |
5fd398406cf7
[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 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
|
845 } |
5fd398406cf7
[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 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
|
848 { |
5fd398406cf7
[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 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
|
850 } |
5fd398406cf7
[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 /*** 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
|
853 |
5fd398406cf7
[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 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
|
855 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
|
856 |
5fd398406cf7
[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 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
|
858 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
|
859 { |
5fd398406cf7
[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 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
|
861 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
|
862 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
|
863 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
|
864 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
|
865 |
5fd398406cf7
[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 /* 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
|
867 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
|
868 |
5fd398406cf7
[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 /* 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
|
870 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
|
871 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
|
872 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
|
873 |
5fd398406cf7
[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 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
|
875 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
|
876 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
|
877 |
5fd398406cf7
[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 /* 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
|
879 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
|
880 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
|
881 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
|
882 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
|
883 |
5fd398406cf7
[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 /* 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
|
885 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
|
886 } |
5fd398406cf7
[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 /* 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
|
889 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
|
890 |
5fd398406cf7
[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 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
|
892 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
|
893 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
|
894 } |
5fd398406cf7
[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 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
|
896 } |
5fd398406cf7
[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 /*-- 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
|
899 |
5fd398406cf7
[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 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
|
901 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
|
902 { |
5fd398406cf7
[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 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
|
904 |
5fd398406cf7
[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 /* 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
|
906 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
|
907 |
5fd398406cf7
[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 /* 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
|
909 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
|
910 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
|
911 ? 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
|
912 |
5fd398406cf7
[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 /* 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
|
914 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
|
915 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
|
916 |
5fd398406cf7
[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 /* 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
|
918 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
|
919 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
|
920 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
|
921 } |
5fd398406cf7
[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 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
|
924 { |
5fd398406cf7
[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 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
|
926 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
|
927 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
|
928 } |
5fd398406cf7
[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 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
|
931 { |
5fd398406cf7
[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 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
|
933 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
|
934 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
|
935 } |
5fd398406cf7
[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 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
|
938 { |
5fd398406cf7
[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 /* 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
|
940 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
|
941 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
|
942 } |
5fd398406cf7
[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 /*-- 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
|
945 |
5fd398406cf7
[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 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
|
947 { |
5fd398406cf7
[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 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
|
949 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
|
950 |
5fd398406cf7
[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 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
|
952 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
|
953 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
|
954 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
|
955 |
5fd398406cf7
[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 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
|
957 } |
5fd398406cf7
[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 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
|
960 { |
5fd398406cf7
[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 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
|
962 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
|
963 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
|
964 } |
5fd398406cf7
[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 /*** 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
|
967 |
5fd398406cf7
[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 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
|
969 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
|
970 |
5fd398406cf7
[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 /* 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
|
972 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
|
973 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
|
974 |
5fd398406cf7
[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 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
|
976 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
|
977 { |
5fd398406cf7
[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 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
|
979 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
|
980 |
5fd398406cf7
[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 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
|
982 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
|
983 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
|
984 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
|
985 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
|
986 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
|
987 #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
|
988 /* 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
|
989 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
|
990 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
|
991 #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
|
992 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
|
993 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
|
994 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
|
995 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
|
996 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
|
997 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
|
998 } |
5fd398406cf7
[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 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
|
1003 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
|
1004 { |
5fd398406cf7
[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 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
|
1006 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
|
1007 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
|
1008 |
5fd398406cf7
[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 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
|
1010 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
|
1011 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
|
1012 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
|
1013 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
|
1014 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
|
1015 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
|
1016 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
|
1017 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
|
1018 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
|
1019 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
|
1020 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
|
1021 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
|
1022 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
|
1023 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
|
1024 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
|
1025 } |
5fd398406cf7
[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 #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
|
1029 #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
|
1030 #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
|
1031 #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
|
1032 #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
|
1033 #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
|
1034 #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
|
1035 #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
|
1036 #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
|
1037 #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
|
1038 |
5fd398406cf7
[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 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
|
1040 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
|
1041 { |
5fd398406cf7
[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 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
|
1043 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
|
1044 |
5fd398406cf7
[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 /* 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
|
1046 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
|
1047 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
|
1048 |
5fd398406cf7
[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 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
|
1050 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
|
1051 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
|
1052 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
|
1053 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
|
1054 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
|
1055 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
|
1056 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
|
1057 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
|
1058 } |
5fd398406cf7
[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 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
|
1061 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
|
1062 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
|
1063 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
|
1064 } |
5fd398406cf7
[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 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
|
1067 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
|
1068 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
|
1069 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
|
1070 } |
5fd398406cf7
[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 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
|
1073 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
|
1074 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
|
1075 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
|
1076 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
|
1077 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
|
1078 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
|
1079 } |
5fd398406cf7
[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 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
|
1081 } |
5fd398406cf7
[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 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
|
1084 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
|
1085 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
|
1086 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
|
1087 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
|
1088 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
|
1089 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
|
1090 } |
5fd398406cf7
[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 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
|
1092 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
|
1093 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
|
1094 } |
5fd398406cf7
[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 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
|
1098 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
|
1099 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
|
1100 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
|
1101 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
|
1102 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
|
1103 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
|
1104 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
|
1105 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
|
1106 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
|
1107 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
|
1108 } |
5fd398406cf7
[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 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
|
1111 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
|
1112 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
|
1113 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
|
1114 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
|
1115 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
|
1116 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
|
1117 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
|
1118 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
|
1119 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
|
1120 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
|
1121 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
|
1122 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
|
1123 } |
5fd398406cf7
[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 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
|
1126 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
|
1127 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
|
1128 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
|
1129 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
|
1130 |
5fd398406cf7
[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 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
|
1132 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
|
1133 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
|
1134 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
|
1135 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
|
1136 } |
5fd398406cf7
[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 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
|
1138 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
|
1139 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
|
1140 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
|
1141 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
|
1142 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
|
1143 } 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
|
1144 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
|
1145 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
|
1146 } |
5fd398406cf7
[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 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
|
1149 } |
5fd398406cf7
[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 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
|
1152 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
|
1153 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
|
1154 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
|
1155 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
|
1156 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
|
1157 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
|
1158 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
|
1159 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
|
1160 } |
5fd398406cf7
[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 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
|
1162 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
|
1163 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
|
1164 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
|
1165 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
|
1166 } |
5fd398406cf7
[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 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
|
1168 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
|
1169 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
|
1170 } |
5fd398406cf7
[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 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
|
1172 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
|
1173 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
|
1174 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
|
1175 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
|
1176 } |
5fd398406cf7
[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 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
|
1179 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
|
1180 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
|
1181 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
|
1182 |
5fd398406cf7
[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 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
|
1184 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
|
1185 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
|
1186 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
|
1187 } |
5fd398406cf7
[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 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
|
1190 } |
5fd398406cf7
[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 /*-- 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
|
1193 |
5fd398406cf7
[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 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
|
1195 { |
5fd398406cf7
[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 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
|
1197 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
|
1198 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
|
1199 } |
5fd398406cf7
[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 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
|
1202 { |
5fd398406cf7
[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 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
|
1204 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
|
1205 } |
5fd398406cf7
[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 /* - 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
|
1208 |
5fd398406cf7
[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 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
|
1210 { |
5fd398406cf7
[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 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
|
1212 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
|
1213 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
|
1214 } |
5fd398406cf7
[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 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
|
1217 { |
5fd398406cf7
[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 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
|
1219 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
|
1220 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
|
1221 } |
5fd398406cf7
[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 /* - 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
|
1224 |
5fd398406cf7
[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 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
|
1226 { |
5fd398406cf7
[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 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
|
1228 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
|
1229 = 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
|
1230 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
|
1231 } |
5fd398406cf7
[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 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
|
1234 { |
5fd398406cf7
[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 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
|
1236 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
|
1237 = 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
|
1238 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
|
1239 } |
5fd398406cf7
[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 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
|
1242 { |
5fd398406cf7
[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 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
|
1244 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
|
1245 = 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
|
1246 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
|
1247 } |
5fd398406cf7
[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 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
|
1250 { |
5fd398406cf7
[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 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
|
1252 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
|
1253 = 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
|
1254 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
|
1255 } |
5fd398406cf7
[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 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
|
1258 { |
5fd398406cf7
[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 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
|
1260 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
|
1261 = 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
|
1262 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
|
1263 } |
5fd398406cf7
[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 /* - 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
|
1266 |
5fd398406cf7
[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 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
|
1268 { |
5fd398406cf7
[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 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
|
1270 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
|
1271 = 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
|
1272 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
|
1273 } |
5fd398406cf7
[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 /* - 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
|
1276 |
5fd398406cf7
[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 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
|
1278 { |
5fd398406cf7
[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 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
|
1280 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
|
1281 = 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
|
1282 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
|
1283 } |
5fd398406cf7
[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 /* - 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
|
1286 |
5fd398406cf7
[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 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
|
1288 { |
5fd398406cf7
[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 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
|
1290 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
|
1291 = 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
|
1292 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
|
1293 } |
5fd398406cf7
[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 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
|
1296 { |
5fd398406cf7
[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 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
|
1298 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
|
1299 = 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
|
1300 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
|
1301 } |
5fd398406cf7
[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 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
|
1304 { |
5fd398406cf7
[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 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
|
1306 = 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
|
1307 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
|
1308 } |
5fd398406cf7
[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 /* - 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
|
1311 |
5fd398406cf7
[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 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
|
1313 { |
5fd398406cf7
[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 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
|
1315 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
|
1316 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
|
1317 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
|
1318 } |
5fd398406cf7
[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 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
|
1321 { |
5fd398406cf7
[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 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
|
1323 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
|
1324 } |
5fd398406cf7
[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 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
|
1327 { |
5fd398406cf7
[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 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
|
1329 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
|
1330 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
|
1331 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
|
1332 } |
5fd398406cf7
[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 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
|
1335 { |
5fd398406cf7
[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 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
|
1337 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
|
1338 } |
5fd398406cf7
[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 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
|
1341 { |
5fd398406cf7
[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 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
|
1343 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
|
1344 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
|
1345 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
|
1346 } |
5fd398406cf7
[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 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
|
1349 { |
5fd398406cf7
[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 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
|
1351 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
|
1352 } |
5fd398406cf7
[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 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
|
1355 { |
5fd398406cf7
[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 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
|
1357 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
|
1358 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
|
1359 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
|
1360 } |
5fd398406cf7
[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 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
|
1363 { |
5fd398406cf7
[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 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
|
1365 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
|
1366 } |
5fd398406cf7
[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 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
|
1369 { |
5fd398406cf7
[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 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
|
1371 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
|
1372 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
|
1373 } |
5fd398406cf7
[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 /* - 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
|
1376 |
5fd398406cf7
[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 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
|
1378 { |
5fd398406cf7
[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 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
|
1380 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
|
1381 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
|
1382 } |
5fd398406cf7
[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 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
|
1385 { |
5fd398406cf7
[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 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
|
1387 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
|
1388 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
|
1389 } |
5fd398406cf7
[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 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
|
1392 { |
5fd398406cf7
[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 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
|
1394 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
|
1395 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
|
1396 } |
5fd398406cf7
[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 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
|
1399 { |
5fd398406cf7
[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 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
|
1401 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
|
1402 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
|
1403 } |
5fd398406cf7
[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 /*-- 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
|
1406 |
5fd398406cf7
[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 /* 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
|
1408 /* 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
|
1409 |
5fd398406cf7
[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 /*-- 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
|
1411 |
5fd398406cf7
[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 /* 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
|
1413 /* 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
|
1414 |
5fd398406cf7
[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 /*-- 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
|
1416 |
5fd398406cf7
[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 /* 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
|
1418 /* 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
|
1419 /* 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
|
1420 |
5fd398406cf7
[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 /*** 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
|
1422 |
5fd398406cf7
[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 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
|
1424 { |
5fd398406cf7
[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 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
|
1426 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
|
1427 |
5fd398406cf7
[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 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
|
1429 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
|
1430 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
|
1431 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
|
1432 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
|
1433 |
5fd398406cf7
[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 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
|
1435 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
|
1436 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
|
1437 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
|
1438 } |
5fd398406cf7
[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 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
|
1440 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
|
1441 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
|
1442 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
|
1443 } |
5fd398406cf7
[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 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
|
1446 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
|
1447 |
5fd398406cf7
[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 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
|
1449 } |
5fd398406cf7
[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 /*-- 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
|
1452 |
5fd398406cf7
[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 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
|
1454 { |
5fd398406cf7
[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 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
|
1456 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
|
1457 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
|
1458 } |
5fd398406cf7
[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 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
|
1461 { |
5fd398406cf7
[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 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
|
1463 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
|
1464 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
|
1465 } |
5fd398406cf7
[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 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
|
1468 { |
5fd398406cf7
[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 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
|
1470 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
|
1471 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
|
1472 } |
5fd398406cf7
[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 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
|
1475 { |
5fd398406cf7
[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 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
|
1477 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
|
1478 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
|
1479 } |
5fd398406cf7
[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 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
|
1482 { |
5fd398406cf7
[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 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
|
1484 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
|
1485 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
|
1486 } |
5fd398406cf7
[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 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
|
1489 { |
5fd398406cf7
[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 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
|
1491 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
|
1492 } |
5fd398406cf7
[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 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
|
1495 { |
5fd398406cf7
[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 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
|
1497 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
|
1498 } |
5fd398406cf7
[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 /*** 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
|
1501 |
5fd398406cf7
[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 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
|
1503 { |
5fd398406cf7
[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 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
|
1505 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
|
1506 |
5fd398406cf7
[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 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
|
1508 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
|
1509 |
5fd398406cf7
[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 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
|
1511 |
5fd398406cf7
[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 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
|
1513 } |
5fd398406cf7
[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 /*-- 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
|
1516 |
5fd398406cf7
[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 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
|
1518 { |
5fd398406cf7
[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 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
|
1520 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
|
1521 } |
5fd398406cf7
[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 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
|
1524 { |
5fd398406cf7
[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 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
|
1526 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
|
1527 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
|
1528 } |
5fd398406cf7
[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 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
|
1531 { |
5fd398406cf7
[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 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
|
1533 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
|
1534 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
|
1535 } |
5fd398406cf7
[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 /*** 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
|
1538 |
5fd398406cf7
[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 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
|
1540 { |
5fd398406cf7
[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 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
|
1542 } |
5fd398406cf7
[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 /*** 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
|
1545 |
5fd398406cf7
[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 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
|
1547 { |
5fd398406cf7
[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 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
|
1549 |
5fd398406cf7
[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 /* 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
|
1551 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
|
1552 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
|
1553 |
5fd398406cf7
[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 /* 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
|
1555 |
5fd398406cf7
[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 /* 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
|
1557 |
5fd398406cf7
[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 /* 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
|
1559 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
|
1560 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
|
1561 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
|
1562 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
|
1563 |
5fd398406cf7
[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 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
|
1565 |
5fd398406cf7
[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 /* 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
|
1567 |
5fd398406cf7
[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 /* 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
|
1569 |
5fd398406cf7
[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 /* 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
|
1571 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
|
1572 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
|
1573 |
5fd398406cf7
[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 /* 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
|
1575 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
|
1576 |
5fd398406cf7
[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 /* 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
|
1578 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
|
1579 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
|
1580 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
|
1581 |
5fd398406cf7
[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 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
|
1583 |
5fd398406cf7
[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 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
|
1585 |
5fd398406cf7
[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 /* 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
|
1587 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
|
1588 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
|
1589 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
|
1590 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
|
1591 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
|
1592 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
|
1593 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
|
1594 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
|
1595 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
|
1596 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
|
1597 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
|
1598 |
5fd398406cf7
[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 /* 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
|
1600 |
5fd398406cf7
[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 /* 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
|
1602 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
|
1603 |
5fd398406cf7
[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 /* 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
|
1605 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
|
1606 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
|
1607 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
|
1608 |
5fd398406cf7
[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 /* 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
|
1610 *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
|
1611 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
|
1612 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
|
1613 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
|
1614 |
5fd398406cf7
[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 /* 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
|
1616 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
|
1617 |
5fd398406cf7
[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 /* 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
|
1619 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
|
1620 |
5fd398406cf7
[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 /* 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
|
1622 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
|
1623 |
5fd398406cf7
[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 /* 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
|
1625 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
|
1626 } |
5fd398406cf7
[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 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
|
1629 { |
5fd398406cf7
[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 /* 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
|
1631 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
|
1632 |
5fd398406cf7
[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 /* 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
|
1634 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
|
1635 } |
5fd398406cf7
[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 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
|
1638 { |
5fd398406cf7
[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 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
|
1640 |
5fd398406cf7
[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 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
|
1642 /* 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
|
1643 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
|
1644 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
|
1645 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
|
1646 } |
5fd398406cf7
[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 /* 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
|
1649 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
|
1650 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
|
1651 |
5fd398406cf7
[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 /* 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
|
1653 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
|
1654 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
|
1655 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
|
1656 |
5fd398406cf7
[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 /* 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
|
1658 *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
|
1659 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
|
1660 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
|
1661 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
|
1662 |
5fd398406cf7
[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 /* 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
|
1664 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
|
1665 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
|
1666 |
5fd398406cf7
[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 /* 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
|
1668 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
|
1669 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
|
1670 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
|
1671 |
5fd398406cf7
[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 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
|
1673 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
|
1674 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
|
1675 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
|
1676 |
5fd398406cf7
[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 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
|
1678 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
|
1679 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
|
1680 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
|
1681 |
5fd398406cf7
[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 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
|
1683 |
5fd398406cf7
[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 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
|
1685 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
|
1686 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
|
1687 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
|
1688 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
|
1689 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
|
1690 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
|
1691 } |
5fd398406cf7
[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 /* 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
|
1695 #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
|
1696 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
|
1697 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
|
1698 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
|
1699 |
5fd398406cf7
[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 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
|
1701 |
5fd398406cf7
[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 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
|
1703 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
|
1704 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
|
1705 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 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
|
1707 |
5fd398406cf7
[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 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
|
1709 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
|
1710 |
5fd398406cf7
[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 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
|
1712 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
|
1713 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
|
1714 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
|
1715 } |
5fd398406cf7
[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 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
|
1718 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
|
1719 } |
5fd398406cf7
[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 #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
|
1721 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
|
1722 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
|
1723 #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
|
1724 |
5fd398406cf7
[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 /* 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
|
1726 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
|
1727 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
|
1728 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
|
1729 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
|
1730 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
|
1731 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
|
1732 |
5fd398406cf7
[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 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
|
1734 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
|
1735 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
|
1736 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
|
1737 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
|
1738 } |
5fd398406cf7
[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 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
|
1740 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
|
1741 } |
5fd398406cf7
[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 /* 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
|
1744 |
5fd398406cf7
[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 /* 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
|
1746 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
|
1747 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
|
1748 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
|
1749 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
|
1750 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
|
1751 } |
5fd398406cf7
[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 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
|
1753 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
|
1754 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
|
1755 } |
5fd398406cf7
[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 /* 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
|
1758 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
|
1759 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
|
1760 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
|
1761 |
5fd398406cf7
[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 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
|
1763 |
5fd398406cf7
[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 /* 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
|
1765 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
|
1766 |
5fd398406cf7
[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 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
|
1768 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
|
1769 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
|
1770 } |
5fd398406cf7
[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 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
|
1773 |
5fd398406cf7
[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 /* 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
|
1775 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
|
1776 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
|
1777 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
|
1778 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
|
1779 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
|
1780 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
|
1781 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
|
1782 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
|
1783 |
5fd398406cf7
[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 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
|
1785 |
5fd398406cf7
[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 /* 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
|
1787 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
|
1788 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
|
1789 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
|
1790 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
|
1791 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
|
1792 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
|
1793 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
|
1794 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
|
1795 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
|
1796 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
|
1797 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
|
1798 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
|
1799 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
|
1800 |
5fd398406cf7
[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 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
|
1802 |
5fd398406cf7
[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 /* 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
|
1804 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
|
1805 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
|
1806 |
5fd398406cf7
[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 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
|
1808 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
|
1809 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
|
1810 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
|
1811 } |
5fd398406cf7
[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 /* 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
|
1815 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
|
1816 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
|
1817 } |
5fd398406cf7
[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 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
|
1819 /* 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
|
1820 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
|
1821 } |
5fd398406cf7
[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 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
|
1824 { |
5fd398406cf7
[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 if(!about_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
|
1826 gchar *about_text = |
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
|
1827 "Audacious crossfading plugin\n" |
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
|
1828 "Code adapted for Audacious usage by Tony Vroon <chainsaw@gentoo.org> from:\n" |
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
|
1829 "XMMS Crossfade Plugin "VERSION"\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
|
1830 "Copyright (C) 2000-2004 Peter Eisenlohr <peter@eisenlohr.org>\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
|
1831 "\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
|
1832 "based on the original OSS Output Plugin Copyright (C) 1998-2000\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
|
1833 "Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies\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
|
1834 "\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
|
1835 "This program is free software; you can redistribute it and/or modify\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
|
1836 "it under the terms of the GNU General Public License as published by\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
|
1837 "the Free Software Foundation; either version 2 of the License, or\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
|
1838 "(at your option) any later version.\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
|
1839 "\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
|
1840 "This program is distributed in the hope that it will be useful,\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
|
1841 "but WITHOUT ANY WARRANTY; without even the implied warranty of\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
|
1842 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\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
|
1843 "GNU General Public License for more details.\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
|
1844 "\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
|
1845 "You should have received a copy of the GNU General Public License\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
|
1846 "along with this program; if not, write to the Free Software\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
|
1847 "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,\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
|
1848 "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
|
1849 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1850 about_win = create_about_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
|
1851 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1852 /* update about_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
|
1853 gtk_signal_connect(GTK_OBJECT(about_win), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &about_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
|
1854 |
5fd398406cf7
[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 /* set about box text (this is done here and not in interface.c because |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1856 of the VERSION #define -- there is no way to do this with GLADE */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1857 if((set_wgt = lookup_widget(about_win, "about_label"))) |
5fd398406cf7
[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 gtk_label_set_text(GTK_LABEL(set_wgt), about_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
|
1859 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1860 /* show 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
|
1861 gtk_window_set_position(GTK_WINDOW(about_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
|
1862 gtk_widget_show(about_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
|
1863 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1864 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
|
1865 gdk_window_raise(about_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
|
1866 } |