Mercurial > audlegacy-plugins
view src/projectm-1.0/main_visplugin.c @ 2260:b71d8bee8882
OSS: use SNDCTL_DSP_SYNC, as not all OSS versions have SNDCTL_DSP_RESET.
Reported by Michal on the forums.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 21 Dec 2007 12:17:25 -0600 |
parents | 0edf1cb262c0 |
children |
line wrap: on
line source
#include <audacious/plugin.h> extern void projectM_xmms_init(void); extern void projectM_cleanup(void); extern void projectM_render_pcm(gint16 pcm_data[2][512]); VisPlugin projectM_vtable = { .description = "projectM v1.0", .num_pcm_chs_wanted = 2, .init = projectM_xmms_init, .cleanup = projectM_cleanup, .render_pcm = projectM_render_pcm, }; VisPlugin *projectM_vplist[] = { &projectM_vtable, NULL }; DECLARE_PLUGIN(projectm, NULL, NULL, NULL, NULL, NULL, NULL, projectM_vplist, NULL);