Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Defines | Functions | Variables
vis_runner.c File Reference
#include <glib.h>
#include <libaudcore/hook.h>
#include "misc.h"
#include "output.h"
#include "vis_runner.h"

Go to the source code of this file.

Classes

struct  VisHookItem

Defines

#define INTERVAL   30

Functions

 G_LOCK_DEFINE_STATIC (mutex)
static gboolean send_audio (void *unused)
static gboolean send_clear (void *unused)
void vis_runner_lock (void)
void vis_runner_unlock (void)
gboolean vis_runner_locked (void)
void vis_runner_flush (void)
void vis_runner_start_stop (gboolean new_playing, gboolean new_paused)
void vis_runner_pass_audio (gint time, gfloat *data, gint samples, gint channels, gint rate)
static void time_offset_cb (VisNode *vis_node, void *offset)
void vis_runner_time_offset (gint offset)
void vis_runner_add_hook (VisHookFunc func, void *user)
void vis_runner_remove_hook (VisHookFunc func)

Variables

static gboolean playing = FALSE
static gboolean paused = FALSE
static gboolean active = FALSE
static GList * hooks = NULL
static VisNodecurrent_node = NULL
static GQueue vis_list = G_QUEUE_INIT
static gint send_source = 0
static gint clear_source = 0
static gboolean locked = FALSE

Define Documentation

#define INTERVAL   30

Definition at line 29 of file vis_runner.c.

Referenced by send_audio(), vis_runner_pass_audio(), and vis_runner_start_stop().


Function Documentation

G_LOCK_DEFINE_STATIC ( mutex  )
static gboolean send_audio ( void *  unused) [static]

Definition at line 43 of file vis_runner.c.

Referenced by vis_runner_start_stop().

static gboolean send_clear ( void *  unused) [static]

Definition at line 86 of file vis_runner.c.

Referenced by vis_runner_flush().

static void time_offset_cb ( VisNode vis_node,
void *  offset 
) [static]

Definition at line 212 of file vis_runner.c.

Referenced by vis_runner_time_offset().

void vis_runner_add_hook ( VisHookFunc  func,
void *  user 
)

Definition at line 225 of file vis_runner.c.

Referenced by vis_load().

void vis_runner_flush ( void  )

Definition at line 115 of file vis_runner.c.

Referenced by flush(), and vis_runner_start_stop().

void vis_runner_lock ( void  )

Definition at line 98 of file vis_runner.c.

gboolean vis_runner_locked ( void  )

Definition at line 110 of file vis_runner.c.

void vis_runner_pass_audio ( gint  time,
gfloat *  data,
gint  samples,
gint  channels,
gint  rate 
)

Definition at line 149 of file vis_runner.c.

Referenced by write_processed().

void vis_runner_remove_hook ( VisHookFunc  func)

Definition at line 238 of file vis_runner.c.

Referenced by vis_unload().

void vis_runner_start_stop ( gboolean  new_playing,
gboolean  new_paused 
)
void vis_runner_time_offset ( gint  offset)

Definition at line 217 of file vis_runner.c.

Referenced by reset_time().

void vis_runner_unlock ( void  )

Definition at line 104 of file vis_runner.c.


Variable Documentation

gboolean active = FALSE

Definition at line 41 of file vis_runner.c.

Referenced by send_clear(), vis_runner_flush(), and vis_runner_start_stop().

VisNode* current_node = NULL [static]

Definition at line 39 of file vis_runner.c.

GList* hooks = NULL [static]
gboolean locked = FALSE [static]

Definition at line 96 of file vis_runner.c.

Referenced by vis_runner_lock(), vis_runner_locked(), and vis_runner_unlock().

gboolean paused = FALSE

Definition at line 37 of file vis_runner.c.

gboolean playing = FALSE [static]

Definition at line 37 of file vis_runner.c.

Referenced by vis_runner_add_hook(), vis_runner_remove_hook(), and vis_runner_start_stop().

gint send_source = 0 [static]

Definition at line 41 of file vis_runner.c.

Referenced by send_audio(), and vis_runner_start_stop().

GQueue vis_list = G_QUEUE_INIT [static]