comparison src/echo_plugin/echo.c @ 1640:a5045f10f80c

echo_plugin: C99 initialisers
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 05:50:49 -0500
parents 761e17b23e0c
children 2ebeb7816c5e
comparison
equal deleted inserted replaced
1639:a83a065e6518 1640:a5045f10f80c
21 #define BUFFER_SHORTS (BUFFER_SAMPLES * MAX_CHANNELS) 21 #define BUFFER_SHORTS (BUFFER_SAMPLES * MAX_CHANNELS)
22 #define BUFFER_BYTES (BUFFER_SHORTS * BYTES_PS) 22 #define BUFFER_BYTES (BUFFER_SHORTS * BYTES_PS)
23 23
24 EffectPlugin echo_ep = 24 EffectPlugin echo_ep =
25 { 25 {
26 NULL, 26 .description = "Echo Plugin", /* Description */
27 NULL, 27 .init = init,
28 "Echo Plugin", /* Description */ 28 .cleanup = cleanup,
29 init, 29 .about = echo_about,
30 cleanup, 30 .configure = echo_configure,
31 echo_about, 31 .mod_samples = mod_samples,
32 echo_configure,
33 mod_samples,
34 NULL
35 }; 32 };
36 33
37 static gint16 *buffer = NULL; 34 static gint16 *buffer = NULL;
38 gint echo_delay = 500, echo_feedback = 50, echo_volume = 50; 35 gint echo_delay = 500, echo_feedback = 50, echo_volume = 50;
39 gboolean echo_surround_enable = FALSE; 36 gboolean echo_surround_enable = FALSE;