Mercurial > audlegacy
comparison src/audacious/widgets/vis.c @ 2328:d88558b0de0a trunk
[svn] - Added script for migration to XDG basedir.
- Fixed tons of warnings.
| author | js |
|---|---|
| date | Sat, 13 Jan 2007 16:41:21 -0800 |
| parents | 3149d4b1a9a9 |
| children | 63115d6e8ba8 |
comparison
equal
deleted
inserted
replaced
| 2327:921b2d8d9b2e | 2328:d88558b0de0a |
|---|---|
| 26 #include <string.h> | 26 #include <string.h> |
| 27 | 27 |
| 28 #include "main.h" | 28 #include "main.h" |
| 29 #include "skin.h" | 29 #include "skin.h" |
| 30 #include "widget.h" | 30 #include "widget.h" |
| 31 #include "playback.h" | |
| 31 | 32 |
| 32 static const gfloat vis_afalloff_speeds[] = { 0.34, 0.5, 1.0, 1.3, 1.6 }; | 33 static const gfloat vis_afalloff_speeds[] = { 0.34, 0.5, 1.0, 1.3, 1.6 }; |
| 33 static const gfloat vis_pfalloff_speeds[] = { 1.2, 1.3, 1.4, 1.5, 1.6 }; | 34 static const gfloat vis_pfalloff_speeds[] = { 1.2, 1.3, 1.4, 1.5, 1.6 }; |
| 34 static const gint vis_redraw_delays[] = { 1, 2, 4, 8 }; | 35 static const gint vis_redraw_delays[] = { 1, 2, 4, 8 }; |
| 35 static const guint8 vis_scope_colors[] = | 36 static const guint8 vis_scope_colors[] = |
| 43 vis_timeout_func(Vis * vis, guchar * data) | 44 vis_timeout_func(Vis * vis, guchar * data) |
| 44 { | 45 { |
| 45 static GTimer *timer = NULL; | 46 static GTimer *timer = NULL; |
| 46 gulong micros = 9999999; | 47 gulong micros = 9999999; |
| 47 gboolean falloff = FALSE; | 48 gboolean falloff = FALSE; |
| 48 gint i, n; | 49 gint i; |
| 49 | 50 |
| 50 if (!timer) { | 51 if (!timer) { |
| 51 timer = g_timer_new(); | 52 timer = g_timer_new(); |
| 52 g_timer_start(timer); | 53 g_timer_start(timer); |
| 53 } | 54 } |
