Mercurial > audlegacy-plugins
annotate src/null/null.c @ 176:c93118f6ef27 trunk
[svn] - update Mosaic effect helptext.
author | nenolod |
---|---|
date | Wed, 01 Nov 2006 01:03:30 -0800 |
parents | 5dfc0e491ad3 |
children | 7385182ae4b8 |
rev | line source |
---|---|
144
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
1 /* |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
2 * Copyright 2006 Christian Birchinger <joker@netswarm.net> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
3 * |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
4 * Based on the XMMS plugin: |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
5 * Copyright 2000 Håvard Kvålen <havardk@sol.no> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
6 * |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
7 * |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
8 * This program is free software; you can redistribute it and/or modify |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
11 * (at your option) any later version. |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
12 * |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
13 * This program is distributed in the hope that it will be useful, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
16 * GNU General Public License for more details. |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
17 * |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
18 * You should have received a copy of the GNU General Public License |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
19 * along with this program; if not, write to the Free Software |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
21 */ |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
22 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
23 #include <glib.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
24 #include <glib/gi18n.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
25 #include <gtk/gtk.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
26 #include <audacious/plugin.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
27 #include <audacious/util.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
28 #include <audacious/configdb.h> |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
29 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
30 static GTimer *timer; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
31 static gulong offset_time, written; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
32 static gint bps; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
33 static gboolean real_time = TRUE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
34 static gboolean paused, started; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
35 static GtkWidget *configurewin; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
36 static struct { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
37 AFormat format; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
38 gint frequency; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
39 gint channels; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
40 } input_format; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
41 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
42 #define ELAPSED_TIME (offset_time + g_timer_elapsed(timer, NULL) * 1000) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
43 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
44 static void null_init(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
45 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
46 ConfigDb *db; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
47 db = bmp_cfg_db_open(); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
48 bmp_cfg_db_get_bool(db, "null", "real_time", &real_time); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
49 bmp_cfg_db_close(db); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
50 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
51 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
52 static void null_about(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
53 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
54 static GtkWidget *about; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
55 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
56 if (about) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
57 return; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
58 about = xmms_show_message(_("About Null Output"), |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
59 _("Null output plugin " VERSION |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
60 " by Christian Birchinger <joker@netswarm.net>\n" |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
61 " based on the XMMS plugin by Håvard Kvål <havardk@xmms.org>"), |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
62 _("Ok"), FALSE, NULL, NULL); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
63 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
64 g_signal_connect(G_OBJECT(about), "destroy", |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
65 G_CALLBACK(gtk_widget_destroyed), &about); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
66 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
67 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
68 static void null_configure_ok_cb(GtkButton *w, gpointer data) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
69 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
70 ConfigDb *db; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
71 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
72 db = bmp_cfg_db_open(); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
73 real_time = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(data)); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
74 bmp_cfg_db_set_bool(db, "null", "real_time", real_time); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
75 bmp_cfg_db_close(db); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
76 gtk_widget_destroy(configurewin); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
77 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
78 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
79 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
80 static void null_configure(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
81 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
82 GtkWidget *rt_btn, *ok_button, *cancel_button, *vbox, *bbox; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
83 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
84 if (configurewin) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
85 return; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
86 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
87 configurewin = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
88 gtk_window_set_title(GTK_WINDOW(configurewin), "Null output preferences"); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
89 gtk_window_set_policy(GTK_WINDOW(configurewin), FALSE, FALSE, FALSE); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
90 gtk_container_set_border_width(GTK_CONTAINER(configurewin), 10); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
91 gtk_signal_connect(GTK_OBJECT(configurewin), "destroy", |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
92 GTK_SIGNAL_FUNC(gtk_widget_destroyed), &configurewin); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
93 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
94 vbox = gtk_vbox_new(FALSE, 10); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
95 gtk_container_add(GTK_CONTAINER(configurewin), vbox); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
96 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
97 rt_btn = gtk_check_button_new_with_label("Run in real time"); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
98 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(rt_btn), real_time); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
99 gtk_box_pack_start(GTK_BOX(vbox), rt_btn, FALSE, FALSE, 0); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
100 bbox = gtk_hbutton_box_new(); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
101 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
102 gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 5); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
103 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
104 ok_button = gtk_button_new_with_label("Ok"); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
105 cancel_button = gtk_button_new_with_label("Cancel"); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
106 GTK_WIDGET_SET_FLAGS(ok_button, GTK_CAN_DEFAULT); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
107 GTK_WIDGET_SET_FLAGS(cancel_button, GTK_CAN_DEFAULT); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
108 gtk_widget_grab_default(ok_button); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
109 gtk_signal_connect_object(GTK_OBJECT(cancel_button), "clicked", |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
110 GTK_SIGNAL_FUNC(gtk_widget_destroy), |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
111 GTK_OBJECT(configurewin)); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
112 gtk_signal_connect(GTK_OBJECT(ok_button), "clicked", |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
113 GTK_SIGNAL_FUNC(null_configure_ok_cb), rt_btn); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
114 gtk_box_pack_start_defaults(GTK_BOX(bbox), ok_button); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
115 gtk_box_pack_start_defaults(GTK_BOX(bbox), cancel_button); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
116 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
117 gtk_widget_show_all(configurewin); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
118 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
119 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
120 static int null_open(AFormat fmt, int rate, int nch) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
121 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
122 offset_time = 0; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
123 written = 0; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
124 started = FALSE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
125 paused = FALSE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
126 input_format.format = fmt; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
127 input_format.frequency = rate; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
128 input_format.channels = nch; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
129 bps = rate * nch; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
130 switch (fmt) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
131 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
132 case FMT_U8: |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
133 case FMT_S8: |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
134 break; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
135 default: |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
136 bps <<= 1; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
137 break; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
138 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
139 if (real_time) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
140 timer = g_timer_new(); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
141 return 1; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
142 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
143 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
144 static void null_write(void *ptr, int length) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
145 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
146 EffectPlugin *ep; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
147 if (timer && !started) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
148 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
149 g_timer_start(timer); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
150 started = TRUE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
151 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
152 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
153 if ((ep = get_current_effect_plugin()) != NULL && |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
154 effects_enabled() && ep->mod_samples) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
155 ep->mod_samples(&ptr, length, input_format.format, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
156 input_format.frequency, input_format.channels); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
157 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
158 written += length; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
159 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
160 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
161 static void null_close(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
162 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
163 if (timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
164 g_timer_destroy(timer); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
165 timer = NULL; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
166 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
167 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
168 static void null_flush(int time) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
169 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
170 offset_time = time; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
171 written = ((double)time * bps) / 1000; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
172 if (timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
173 g_timer_reset(timer); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
174 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
175 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
176 static void null_pause(short p) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
177 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
178 paused = p; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
179 if (!timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
180 return; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
181 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
182 if (paused) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
183 g_timer_stop(timer); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
184 else |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
185 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
186 offset_time += g_timer_elapsed(timer, NULL) * 1000; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
187 g_timer_start(timer); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
188 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
189 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
190 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
191 static int null_buffer_free(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
192 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
193 if (timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
194 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
195 return 10240 - (written - (ELAPSED_TIME * bps) / 1000); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
196 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
197 else |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
198 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
199 if (!paused) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
200 return 10000; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
201 else |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
202 return 0; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
203 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
204 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
205 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
206 static int null_playing(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
207 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
208 if (!timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
209 return FALSE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
210 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
211 if ((gdouble)(written * 1000) / bps > ELAPSED_TIME) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
212 return TRUE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
213 return FALSE; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
214 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
215 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
216 static int null_get_written_time(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
217 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
218 if (!bps) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
219 return 0; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
220 return ((gint64)written * 1000) / bps; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
221 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
222 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
223 static int null_get_output_time(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
224 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
225 if (!timer) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
226 return null_get_written_time(); |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
227 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
228 return ELAPSED_TIME; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
229 } |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
230 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
231 OutputPlugin null_op = |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
232 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
233 NULL, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
234 NULL, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
235 "Null output " VERSION, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
236 null_init, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
237 NULL, /* cleanup */ |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
238 null_about, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
239 null_configure, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
240 NULL, /* Get volume */ |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
241 NULL, /* Set volume */ |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
242 null_open, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
243 null_write, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
244 null_close, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
245 null_flush, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
246 null_pause, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
247 null_buffer_free, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
248 null_playing, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
249 null_get_output_time, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
250 null_get_written_time, |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
251 NULL /* tell */ |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
252 }; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
253 |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
254 OutputPlugin *get_oplugin_info(void) |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
255 { |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
256 return &null_op; |
5dfc0e491ad3
[svn] Null output plugin added; original code by Christian Birchinger <joker -at- gentoo.org>
kiyoshi
parents:
diff
changeset
|
257 } |