#include <glib.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 |
Functions | |
G_LOCK_DEFINE_STATIC (mutex) | |
static void | vis_node_free (VisNode *node) |
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_enable (gboolean enable) |
Variables | |
static gboolean | enabled = FALSE |
static gboolean | playing = FALSE |
static gboolean | paused = FALSE |
static gboolean | active = FALSE |
static VisNode * | current_node = NULL |
static gint | current_frames |
static GQueue | vis_list = G_QUEUE_INIT |
static gint | send_source = 0 |
static gint | clear_source = 0 |
static gboolean | locked = FALSE |
#define INTERVAL 30 |
Definition at line 28 of file vis_runner.c.
Referenced by send_audio(), vis_runner_pass_audio(), and vis_runner_start_stop().
G_LOCK_DEFINE_STATIC | ( | mutex | ) |
static gboolean send_audio | ( | void * | unused | ) | [static] |
Definition at line 50 of file vis_runner.c.
Referenced by vis_runner_start_stop().
static gboolean send_clear | ( | void * | unused | ) | [static] |
Definition at line 91 of file vis_runner.c.
Referenced by vis_runner_flush().
static void time_offset_cb | ( | VisNode * | vis_node, | |
void * | offset | |||
) | [static] |
Definition at line 226 of file vis_runner.c.
Referenced by vis_runner_time_offset().
static void vis_node_free | ( | VisNode * | node | ) | [static] |
Definition at line 44 of file vis_runner.c.
Referenced by send_audio(), vis_runner_flush(), and vis_runner_pass_audio().
void vis_runner_enable | ( | gboolean | enable | ) |
Definition at line 239 of file vis_runner.c.
Referenced by vis_func_add(), and vis_func_remove().
void vis_runner_flush | ( | void | ) |
Definition at line 121 of file vis_runner.c.
Referenced by flush(), and vis_runner_start_stop().
void vis_runner_lock | ( | void | ) |
Definition at line 104 of file vis_runner.c.
gboolean vis_runner_locked | ( | void | ) |
Definition at line 116 of file vis_runner.c.
Definition at line 160 of file vis_runner.c.
Referenced by write_processed().
Definition at line 136 of file vis_runner.c.
Referenced by do_pause(), open_audio(), real_close(), and vis_runner_enable().
void vis_runner_time_offset | ( | gint | offset | ) |
Definition at line 231 of file vis_runner.c.
Referenced by flush(), and reset_time().
void vis_runner_unlock | ( | void | ) |
Definition at line 110 of file vis_runner.c.
Definition at line 38 of file vis_runner.c.
Referenced by vis_runner_pass_audio(), and vis_runner_start_stop().
gint clear_source = 0 [static] |
Definition at line 42 of file vis_runner.c.
Referenced by send_clear(), vis_runner_flush(), and vis_runner_start_stop().
gint current_frames [static] |
Definition at line 40 of file vis_runner.c.
Referenced by vis_runner_pass_audio().
VisNode* current_node = NULL [static] |
Definition at line 39 of file vis_runner.c.
Definition at line 37 of file vis_runner.c.
Referenced by do_enable(), vis_runner_enable(), and vis_runner_start_stop().
Definition at line 102 of file vis_runner.c.
Referenced by vis_runner_lock(), vis_runner_locked(), and vis_runner_unlock().
Definition at line 38 of file vis_runner.c.
Referenced by vis_runner_enable(), and vis_runner_start_stop().
Definition at line 38 of file vis_runner.c.
Referenced by vis_runner_enable(), and vis_runner_start_stop().
gint send_source = 0 [static] |
Definition at line 42 of file vis_runner.c.
Referenced by send_audio(), and vis_runner_start_stop().
GQueue vis_list = G_QUEUE_INIT [static] |
Definition at line 41 of file vis_runner.c.
Referenced by send_audio(), vis_runner_flush(), vis_runner_pass_audio(), and vis_runner_time_offset().