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

Go to the source code of this file.

Classes

struct  VisNode

Defines

#define INTERVAL   30 /* milliseconds */

Functions

static void vis_node_free (VisNode *node)
static bool_t send_audio (void *unused)
static bool_t send_clear (void *unused)
void vis_runner_lock (void)
void vis_runner_unlock (void)
bool_t vis_runner_locked (void)
void vis_runner_flush (void)
void vis_runner_start_stop (bool_t new_playing, bool_t new_paused)
void vis_runner_pass_audio (int time, float *data, int samples, int channels, int rate)
static void time_offset_cb (VisNode *vis_node, void *offset)
void vis_runner_time_offset (int offset)
void vis_runner_enable (bool_t enable)

Variables

static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static bool_t enabled = FALSE
static bool_t playing = FALSE
static bool_t paused = FALSE
static bool_t active = FALSE
static VisNodecurrent_node = NULL
static int current_frames
static GQueue vis_list = G_QUEUE_INIT
static int send_source = 0
static int clear_source = 0
static bool_t locked = FALSE

Define Documentation

#define INTERVAL   30 /* milliseconds */

Definition at line 30 of file vis_runner.c.

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


Function Documentation

static bool_t send_audio ( void *  unused) [static]

Definition at line 52 of file vis_runner.c.

Referenced by vis_runner_start_stop().

static bool_t send_clear ( void *  unused) [static]

Definition at line 93 of file vis_runner.c.

Referenced by vis_runner_flush().

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

Definition at line 228 of file vis_runner.c.

Referenced by vis_runner_time_offset().

static void vis_node_free ( VisNode node) [static]

Definition at line 46 of file vis_runner.c.

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

void vis_runner_enable ( bool_t  enable)

Definition at line 241 of file vis_runner.c.

Referenced by vis_func_add(), and vis_func_remove().

void vis_runner_flush ( void  )

Definition at line 123 of file vis_runner.c.

Referenced by flush(), and vis_runner_start_stop().

void vis_runner_lock ( void  )

Definition at line 106 of file vis_runner.c.

Definition at line 118 of file vis_runner.c.

void vis_runner_pass_audio ( int  time,
float *  data,
int  samples,
int  channels,
int  rate 
)

Definition at line 162 of file vis_runner.c.

Referenced by write_processed().

void vis_runner_start_stop ( bool_t  new_playing,
bool_t  new_paused 
)

Definition at line 138 of file vis_runner.c.

Referenced by do_pause(), open_audio(), real_close(), and vis_runner_enable().

void vis_runner_time_offset ( int  offset)

Definition at line 233 of file vis_runner.c.

Referenced by flush(), and reset_time().

void vis_runner_unlock ( void  )

Definition at line 112 of file vis_runner.c.


Variable Documentation

bool_t active = FALSE [static]

Definition at line 40 of file vis_runner.c.

Referenced by vis_runner_pass_audio(), and vis_runner_start_stop().

int clear_source = 0 [static]

Definition at line 44 of file vis_runner.c.

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

int current_frames [static]

Definition at line 42 of file vis_runner.c.

Referenced by vis_runner_pass_audio().

VisNode* current_node = NULL [static]

Definition at line 41 of file vis_runner.c.

bool_t enabled = FALSE [static]
bool_t locked = FALSE [static]

Definition at line 104 of file vis_runner.c.

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

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER [static]
bool_t paused = FALSE [static]

Definition at line 40 of file vis_runner.c.

Referenced by vis_runner_enable(), and vis_runner_start_stop().

bool_t playing = FALSE [static]

Definition at line 40 of file vis_runner.c.

Referenced by vis_runner_enable(), and vis_runner_start_stop().

int send_source = 0 [static]

Definition at line 44 of file vis_runner.c.

Referenced by send_audio(), and vis_runner_start_stop().

GQueue vis_list = G_QUEUE_INIT [static]