Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Macros | Functions | Variables
vis_runner.c File Reference
#include <glib.h>
#include <pthread.h>
#include <stdint.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

Macros

#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)
static void flush (void)
void vis_runner_flush (void)
static void start_stop (bool_t new_playing, bool_t new_paused)
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)
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

Macro Definition Documentation

#define INTERVAL   30 /* milliseconds */

Definition at line 29 of file vis_runner.c.

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

Function Documentation

static void flush ( void  )
static

Definition at line 104 of file vis_runner.c.

Referenced by effect_flush(), flush_output(), start_stop(), and vis_runner_flush().

static bool_t send_audio ( void *  unused)
static

Definition at line 51 of file vis_runner.c.

Referenced by start_stop().

static bool_t send_clear ( void *  unused)
static

Definition at line 93 of file vis_runner.c.

Referenced by flush().

static void start_stop ( bool_t  new_playing,
bool_t  new_paused 
)
static

Definition at line 126 of file vis_runner.c.

Referenced by vis_runner_enable(), and vis_runner_start_stop().

static void vis_node_free ( VisNode node)
static

Definition at line 45 of file vis_runner.c.

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

void vis_runner_enable ( bool_t  enable)

Definition at line 228 of file vis_runner.c.

Referenced by vis_func_add(), and vis_func_remove().

void vis_runner_flush ( void  )

Definition at line 119 of file vis_runner.c.

Referenced by flush_output().

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

Definition at line 157 of file vis_runner.c.

Referenced by write_output_raw().

void vis_runner_start_stop ( bool_t  new_playing,
bool_t  new_paused 
)

Definition at line 150 of file vis_runner.c.

Referenced by apply_pause(), and cleanup_output().

Variable Documentation

bool_t active = FALSE
static

Definition at line 39 of file vis_runner.c.

Referenced by start_stop(), and vis_runner_pass_audio().

int clear_source = 0
static

Definition at line 43 of file vis_runner.c.

Referenced by flush(), send_clear(), and start_stop().

int current_frames
static

Definition at line 41 of file vis_runner.c.

Referenced by vis_runner_pass_audio().

VisNode* current_node = NULL
static

Definition at line 40 of file vis_runner.c.

bool_t enabled = FALSE
static

Definition at line 38 of file vis_runner.c.

Referenced by do_enable(), plugin_set_enabled(), start_stop(), and vis_runner_enable().

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static
bool_t paused = FALSE
static

Definition at line 39 of file vis_runner.c.

Referenced by start_stop(), and vis_runner_enable().

bool_t playing = FALSE
static

Definition at line 39 of file vis_runner.c.

Referenced by start_stop(), and vis_runner_enable().

int send_source = 0
static

Definition at line 43 of file vis_runner.c.

Referenced by send_audio(), and start_stop().

GQueue vis_list = G_QUEUE_INIT
static

Definition at line 42 of file vis_runner.c.

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