| 14 |
14 |
#include <audacious/i18n.h>
|
| 15 |
15 |
#include <audacious/misc.h>
|
| 16 |
16 |
#include <audacious/plugin.h>
|
|
17 |
#include <audacious/preferences.h>
|
| 17 |
18 |
|
| 18 |
19 |
#include "bio2jack.h" /* includes for the bio2jack library */
|
| 19 |
20 |
#include "jack.h"
|
| ... | ... | |
| 191 |
192 |
"volume_right", "25",
|
| 192 |
193 |
NULL};
|
| 193 |
194 |
|
|
195 |
static const ComboBoxElements mode_list[] = {
|
|
196 |
{"CONNECT_ALL", N_("Connect to all available jack ports")},
|
|
197 |
{"CONNECT_OUTPUT", N_("Connect only the output ports")},
|
|
198 |
{"CONNECT_NONE", N_("Don't connect to any port")},
|
|
199 |
};
|
|
200 |
|
|
201 |
static const PreferencesWidget jack_widgets[] = {
|
|
202 |
{WIDGET_COMBO_BOX, N_("Connection mode:"),
|
|
203 |
.cfg_type = VALUE_STRING, .csect = "jack", .cname = "port_connection_mode",
|
|
204 |
.data = {.combo = {mode_list, sizeof mode_list / sizeof mode_list[0]}}},
|
|
205 |
{WIDGET_CHK_BTN, N_("Enable debug printing"),
|
|
206 |
.cfg_type = VALUE_BOOLEAN, .csect = "jack", .cname = "isTraceEnabled"},
|
|
207 |
};
|
|
208 |
|
|
209 |
static const PluginPreferences jack_prefs = {
|
|
210 |
.widgets = jack_widgets,
|
|
211 |
.n_widgets = sizeof jack_widgets / sizeof jack_widgets[0]
|
|
212 |
};
|
|
213 |
|
| 194 |
214 |
/* Initialize necessary things */
|
| 195 |
215 |
static bool_t jack_init (void)
|
| 196 |
216 |
{
|
| ... | ... | |
| 420 |
440 |
.about_text = jack_about,
|
| 421 |
441 |
.init = jack_init,
|
| 422 |
442 |
.cleanup = jack_cleanup,
|
| 423 |
|
#if 0
|
| 424 |
|
.configure = jack_configure,
|
| 425 |
|
#endif
|
|
443 |
.prefs = & jack_prefs,
|
| 426 |
444 |
.get_volume = jack_get_volume,
|
| 427 |
445 |
.set_volume = jack_set_volume,
|
| 428 |
446 |
.open_audio = jack_open,
|
| 429 |
|
-
|