This manages the visualization transfer.
More...
|
xmmsc_visualization_t * | get_dataset (xmmsc_connection_t *c, int vv) |
|
xmmsc_result_t * | xmmsc_visualization_version (xmmsc_connection_t *c) |
| Querys the visualization version. More...
|
|
xmmsc_result_t * | xmmsc_visualization_init (xmmsc_connection_t *c) |
| Initializes a new visualization dataset. More...
|
|
int | xmmsc_visualization_init_handle (xmmsc_result_t *res) |
|
xmmsc_result_t * | xmmsc_visualization_start (xmmsc_connection_t *c, int vv) |
| Initializes a new visualization connection. More...
|
|
void | xmmsc_visualization_start_handle (xmmsc_connection_t *c, xmmsc_result_t *res) |
|
bool | xmmsc_visualization_started (xmmsc_connection_t *c, int vv) |
|
bool | xmmsc_visualization_errored (xmmsc_connection_t *c, int vv) |
|
xmmsc_result_t * | xmmsc_visualization_property_set (xmmsc_connection_t *c, int vv, const char *key, const char *value) |
| Deliver one property. More...
|
|
xmmsc_result_t * | xmmsc_visualization_properties_set (xmmsc_connection_t *c, int vv, xmmsv_t *props) |
| Deliver some properties. More...
|
|
void | xmmsc_visualization_shutdown (xmmsc_connection_t *c, int vv) |
| Says goodbye and cleans up. More...
|
|
int | check_drawtime (double ts, int drawtime) |
|
int | xmmsc_visualization_chunk_get (xmmsc_connection_t *c, int vv, short *buffer, int drawtime, unsigned int blocking) |
| Fetches the next available data chunk. More...
|
|
double | tv2ts (struct timeval *t) |
|
double | net2ts (int32_t *s) |
|
void | ts2net (int32_t *d, double t) |
|
void | tv2net (int32_t *d, struct timeval *t) |
|
char * | packet_init_data (xmmsc_vis_udp_data_t *p) |
|
char * | packet_init_timing (xmmsc_vis_udp_timing_t *p) |
|
This manages the visualization transfer.
Common structs for the visualization client and server.
#define XMMS_VISPACKET_SHMCOUNT 500 |
#define XMMS_VISPACKET_UDP_OFFSET (1 + sizeof (uint16_t)) |
#define XMMS_VISPACKET_VERSION 1 |
#define XMMSC_VIS_UNALIGNED_READ |
( |
|
dst, |
|
|
|
src, |
|
|
|
typ |
|
) |
| |
Value:do { \
typ *__s = (src); \
memcpy (&(dst), __s, sizeof (typ)); \
} while (0)
Referenced by read_do_udp().
#define XMMSC_VIS_UNALIGNED_WRITE |
( |
|
dst, |
|
|
|
src, |
|
|
|
typ |
|
) |
| |
Value:do { \
typ *__d = (dst); \
typ __s = (src); \
memcpy (__d, &__s, sizeof (typ)); \
} while (0)
#define XMMSC_VISUALIZATION_WINDOW_SIZE 512 |
Possible data modes.
Enumerator |
---|
VIS_PCM |
|
VIS_SPECTRUM |
|
VIS_PEAK |
|
Enumerator |
---|
VIS_NEW |
|
VIS_TRYING_UNIXSHM |
|
VIS_TO_TRY_UDP |
|
VIS_TRYING_UDP |
|
VIS_ERRORED |
|
VIS_WORKING |
|
Possible vis transports.
Enumerator |
---|
VIS_UNIXSHM |
|
VIS_UDP |
|
VIS_NONE |
|
int check_drawtime |
( |
double |
ts, |
|
|
int |
drawtime |
|
) |
| |
double net2ts |
( |
int32_t * |
s | ) |
|
void ts2net |
( |
int32_t * |
d, |
|
|
double |
t |
|
) |
| |
void tv2net |
( |
int32_t * |
d, |
|
|
struct timeval * |
t |
|
) |
| |
double tv2ts |
( |
struct timeval * |
t | ) |
|
int xmmsc_visualization_chunk_get |
( |
xmmsc_connection_t * |
c, |
|
|
int |
vv, |
|
|
short * |
buffer, |
|
|
int |
drawtime, |
|
|
unsigned int |
blocking |
|
) |
| |
Fetches the next available data chunk.
Initializes a new visualization dataset.
Says goodbye and cleans up.
Initializes a new visualization connection.
Querys the visualization version.