comparison src/audacious/visualization.c @ 4553:47cc110bef0c

Hookify a visualization function
author mf0102 <0102@gmx.at>
date Sun, 18 May 2008 16:06:33 +0200
parents 3cd896ac4d49
children a77d02342ee1
comparison
equal deleted inserted replaced
4552:1fe29814b90c 4553:47cc110bef0c
282 gboolean mono_pcm_calced = FALSE, stereo_pcm_calced = FALSE; 282 gboolean mono_pcm_calced = FALSE, stereo_pcm_calced = FALSE;
283 guint8 intern_vis_data[512]; 283 guint8 intern_vis_data[512];
284 gint i; 284 gint i;
285 285
286 if (!pcm_data || nch < 1) { 286 if (!pcm_data || nch < 1) {
287 if (cfg.vis_type != VIS_OFF) { 287 if (cfg.vis_type != VIS_OFF)
288 if (cfg.player_shaded && cfg.player_visible) 288 hook_call("visualization timeout", NULL);
289 ui_svis_timeout_func(mainwin_svis, NULL);
290 else
291 ui_vis_timeout_func(mainwin_vis, NULL);
292 }
293 return; 289 return;
294 } 290 }
295 291
296 while (node) { 292 while (node) {
297 vp = node->data; 293 vp = node->data;
469 /* Do not see the point of that? (comparison always false) -larne. 465 /* Do not see the point of that? (comparison always false) -larne.
470 if (intern_vis_data[i] < 0) 466 if (intern_vis_data[i] < 0)
471 intern_vis_data[i] = 0; */ 467 intern_vis_data[i] = 0; */
472 } 468 }
473 } 469 }
474 if (cfg.player_shaded && cfg.player_visible) 470
475 ui_svis_timeout_func(mainwin_svis, intern_vis_data); 471 hook_call("visualization timeout", intern_vis_data);
476 else
477 ui_vis_timeout_func(mainwin_vis, intern_vis_data);
478 } 472 }
479 473
480 void 474 void
481 vis_flow(FlowContext *context) 475 vis_flow(FlowContext *context)
482 { 476 {