comparison src/projectm/main.c @ 1644:c0463e51c338

projectm: C99
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 05:56:30 -0500
parents 761e17b23e0c
children b180f83e4388
comparison
equal deleted inserted replaced
1643:03f4d3fb9d22 1644:c0463e51c338
71 71
72 //extern preset_t * active_preset; 72 //extern preset_t * active_preset;
73 73
74 // Callback functions 74 // Callback functions
75 VisPlugin projectM_vtable = { 75 VisPlugin projectM_vtable = {
76 NULL, // Handle, filled in by xmms 76 .description = "projectM v0.99", // description
77 NULL, // Filename, filled in by xmms 77 .num_pcm_chs_wanted = 2, // # of PCM channels for render_pcm()
78 "projectM v0.99", // description 78 .num_freq_chs_wanted = 0, // # of freq channels wanted for render_freq()
79 2, // # of PCM channels for render_pcm() 79 .init = projectM_xmms_init, // Called when plugin is enabled
80 0, // # of freq channels wanted for render_freq() 80 .cleanup = projectM_cleanup, // Called when plugin is disabled
81 projectM_xmms_init, // Called when plugin is enabled 81 .about = projectM_about, // Show the about box
82 projectM_cleanup, // Called when plugin is disabled 82 .configure = projectM_configure, // Show the configure box
83 projectM_about, // Show the about box 83 .playback_start = projectM_playback_start, // Called when playback starts
84 projectM_configure, // Show the configure box 84 .playback_stop = projectM_playback_stop, // Called when playback stops
85 NULL, // Called to disable plugin, filled in by xmms 85 .render_pcm = projectM_render_pcm, // Render the PCM data, must return quickly
86 projectM_playback_start, // Called when playback starts 86 .render_freq = projectM_render_freq // Render the freq data, must return quickly
87 projectM_playback_stop, // Called when playback stops
88 projectM_render_pcm, // Render the PCM data, must return quickly
89 projectM_render_freq // Render the freq data, must return quickly
90 }; 87 };
91 88
92 VisPlugin *projectM_vplist[] = { &projectM_vtable, NULL }; 89 VisPlugin *projectM_vplist[] = { &projectM_vtable, NULL };
93 90
94 DECLARE_PLUGIN(projectm, NULL, NULL, NULL, NULL, NULL, NULL, projectM_vplist,NULL); 91 DECLARE_PLUGIN(projectm, NULL, NULL, NULL, NULL, NULL, NULL, projectM_vplist,NULL);