XMMS2
Data Structures | Macros | Enumerations | Functions
xmmsc_visualization.h File Reference
#include <sys/time.h>
#include <xmmsc/xmmsc_stdint.h>
#include <xmmsc/xmmsc_sockets.h>

Data Structures

struct  xmmsc_vischunk_t
 Package format for vis data, encapsulated by unixshm or udp transport. More...
 
struct  xmmsc_vis_udp_data_t
 UDP package descriptor to deliver a vis chunk. More...
 
struct  xmmsc_vis_udp_timing_t
 UDP package descriptor to synchronize time. More...
 
struct  xmmsc_vis_properties_t
 Properties of the delivered vis data. More...
 
struct  xmmsc_vis_unixshm_t
 data describing a unixshm transport More...
 
struct  xmmsc_vis_udp_t
 data describing a udp transport More...
 

Macros

#define XMMSC_VISUALIZATION_WINDOW_SIZE   512
 
#define XMMS_VISPACKET_VERSION   1
 
#define XMMS_VISPACKET_SHMCOUNT   500
 
#define XMMSC_VIS_UNALIGNED_WRITE(dst, src, typ)
 
#define XMMSC_VIS_UNALIGNED_READ(dst, src, typ)
 
#define XMMS_VISPACKET_UDP_OFFSET   (1 + sizeof (uint16_t))
 

Enumerations

enum  xmmsc_vis_data_t { VIS_PCM, VIS_SPECTRUM, VIS_PEAK }
 Possible data modes. More...
 
enum  xmmsc_vis_transport_t { VIS_UNIXSHM, VIS_UDP, VIS_NONE }
 Possible vis transports. More...
 
enum  xmmsc_vis_state_t {
  VIS_NEW, VIS_TRYING_UNIXSHM, VIS_TO_TRY_UDP, VIS_TRYING_UDP,
  VIS_ERRORED, VIS_WORKING
}
 

Functions

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)