comparison src/rootvis/rootvis.c @ 1650:8d872d64e695

fixed rootvis plugin
author mf0102 <0102@gmx.at>
date Fri, 07 Sep 2007 13:45:38 +0200
parents 761e17b23e0c
children 83050cd4d14c
comparison
equal deleted inserted replaced
1649:6f61d88bce32 1650:8d872d64e695
21 21
22 static gboolean plugin_is_initted = FALSE; 22 static gboolean plugin_is_initted = FALSE;
23 23
24 // Callback functions 24 // Callback functions
25 VisPlugin rootvis_vtable = { 25 VisPlugin rootvis_vtable = {
26 0, // Handle, filled in by xmms 26 .description = "Root Spectrum Analyzer 0.0.8",
27 0, // Filename, filled in by xmms 27 .num_pcm_chs_wanted = 0,
28 28 .num_freq_chs_wanted = 2,
29 "Root Spectrum Analyzer 0.0.8", // description 29 .init = rootvis_init,
30 30 .cleanup = rootvis_cleanup,
31 0, // # of PCM channels for render_pcm() 31 .configure = rootvis_configure,
32 2, // # of freq channels wanted for render_freq() 32 .playback_start = rootvis_playback_start,
33 33 .playback_stop = rootvis_playback_stop,
34 rootvis_init, // Called when plugin is enabled 34 .render_freq = rootvis_render_freq
35 rootvis_cleanup, // Called when plugin is disabled
36 NULL,//rootvis_about, // Show the about box
37 rootvis_configure, // Show the configure box
38 NULL, // Called to disable plugin, filled in by xmms
39 rootvis_playback_start, // Called when playback starts
40 rootvis_playback_stop, // Called when playback stops
41 NULL, // Render the PCM data, must return quickly
42 rootvis_render_freq // Render the freq data, must return quickly
43 }; 35 };
44 36
45 VisPlugin *rootvis_vplist[] = { &rootvis_vtable, NULL }; 37 VisPlugin *rootvis_vplist[] = { &rootvis_vtable, NULL };
46 38
47 DECLARE_PLUGIN(rootvis, NULL, NULL, NULL, NULL, NULL, NULL, rootvis_vplist,NULL); 39 DECLARE_PLUGIN(rootvis, NULL, NULL, NULL, NULL, NULL, NULL, rootvis_vplist,NULL);