seismix/developers/api

object types and properties shm

song

void sc_del_object_by_idx  (unsigned int _trans_id,int *frag,short int *off,unsigned int idx,unsigned int _obj_id);
void sc_del_object_by_id   (unsigned int _trans_id,int *frag,short int *off,unsigned int obj_id);

void sc_add_track          (unsigned int _trans_id,int *frag,short int *off,char *_data);
void sc_add_chan           (unsigned int _trans_id,int *frag,short int *off,char *_data);
void sc_add_part           (unsigned int _trans_id,int *frag,short int *off,char *_data);
void sc_add_event          (unsigned int _trans_id,int *frag,short int *off,char *_data);
void sc_add_raw            (unsigned int _trans_id,int *frag,short int *off,char *_data);
void sc_add_str            (unsigned int _trans_id,int *frag,short int *off,char *_data,unsigned short int *_cnt);
void sc_add_rte            (unsigned int _trans_id,int *frag,short int *off,char *_data);
int  sc_add_file           (unsigned int _trans_id,int *frag,short int *off,char *_data);

int  add_event_to_fil_idx  (unsigned int eidx,unsigned int fidx);
int  del_event_from_fil_idx(unsigned int eidx,unsigned int fidx);

int  sc_add_event_to_fil_idx(unsigned int eidx,unsigned int fidx,unsigned int _trans_id,int *frag,short int *off);
int  sc_del_event_from_fil_idx(unsigned int eidx,unsigned int fidx,unsigned int _trans_id,int *frag,short int *off);
int  sc_assign_fil_to_event_idx(unsigned int fidx,unsigned int eidx,unsigned int _trans_id,int *frag,short int *off);

int  sc_add_event_to_fil   (unsigned int eid,unsigned int fid,unsigned int _trans_id,int *frag,short int *off);
int  sc_del_event_from_fil (unsigned int eid,unsigned int fid,unsigned int _trans_id,int *frag,short int *off);
int  sc_assign_fil_to_event(unsigned int fid,unsigned int eid,unsigned int _trans_id,int *frag,short int *off);

int  sc_add_lst            (unsigned int _trans_id,int *frag,short int *off,unsigned char *_data);

void sc_set_obj            (unsigned int _trans_id,int *frag,short int *off,unsigned char *_data);


int del_obj(unsigned int _obj_id,unsigned int trans_id);
int add_track(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,unsigned int parent,
    unsigned int mother,unsigned short int _trk_num,unsigned int colour,unsigned int height,short int pb_delay_mu,
        short int pb_delay_sample,short int pb_level,short int pb_pan,char *name,unsigned int trans_id);
int add_chan (unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,unsigned int parent,
    unsigned int mother,unsigned int chan_num,char *name,unsigned int trans_id);
int add_part(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned int parent,unsigned int mother,unsigned long long len,struct _song_pos *stime,unsigned int colour,
        unsigned short int repeat_count,unsigned long long repeat_len,
        short int pb_delay_mu,short int pb_delay_sample,short int pb_level,short int pb_pan,
            char *name,unsigned int trans_id);
int add_event(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned int parent,unsigned int mother,unsigned long long len,struct _song_pos *stime,unsigned int colour,
        unsigned char event_type,unsigned char *ev_data,unsigned int trans_id);
int add_raw(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,int tag,
    unsigned int parent,unsigned int mother,unsigned char *raw_data,unsigned int trans_id);
int add_str(unsigned char *str,unsigned int trans_id);
int add_rte(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned char rte_type,unsigned char *rte_data,unsigned int trans_id);
int add_file(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,unsigned int parent,
    unsigned int mother,unsigned char interleave,unsigned char bits,
        int int_float,int cpu_pcm,int le_be,
            unsigned int sample_rate,unsigned char *name,
                unsigned int trans_id);
int add_lst(unsigned char com,unsigned int _eid,unsigned int _fid,unsigned int trans_id);

int add_track_obj(union _dae_obj *_tobj,char *_name,unsigned int _trans_id);
int add_chan_obj(union _dae_obj *_tobj,char *_name,unsigned int _trans_id);
int add_part_obj(union _dae_obj *_tobj,char *_name,unsigned int _trans_id);
int add_event_obj(union _dae_obj *_tobj,unsigned int _trans_id);
int add_raw_obj(union _dae_obj *_tobj,unsigned int _trans_id);
int add_str_obj(union _dae_obj *_tobj,unsigned int _trans_id);
int add_fil_obj(union _dae_obj *_tobj,char *_name,unsigned int _trans_id);

int add_rte_client(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned int pid,unsigned short int client_id,unsigned char *client_name,unsigned int trans_id);
int add_rte_port(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned short int port_id,unsigned short int client_id,unsigned char src_dst,unsigned char *port_name,unsigned int trans_id);
int add_rte_con(unsigned char sub_type,int rel_sp,int mute,int solo,int record,int locked,int folder,
    unsigned short int src_id,unsigned short int dst_id,unsigned char status,unsigned int trans_id);
int add_rte_obj(union _dae_obj *_tobj,unsigned int _trans_id);

int add_event_to_fil(unsigned int eid,unsigned int fid,unsigned int trans_id);
int del_event_from_fil(unsigned int eid,unsigned int fid,unsigned int trans_id);
int assign_fil_to_event(unsigned int fid,unsigned int eid,unsigned int trans_id);

int set_stime(unsigned int _obj_id,int _beat,unsigned short int _sub,unsigned short int _mu,unsigned int _trans_id);

Sets the start time for object referenced by object ID. Defaults to prop 1. On success, 0 is returned (ie msg sent) otherwise -1 if the object is not found or -2 if the object didn't have the specified property.

int set_len(unsigned int _obj_id,unsigned long long _val,unsigned int _trans_id);
int set_obj_pb(unsigned int _obj_id,int _prop,int _val,unsigned int _trans_id);
int set_obj(unsigned int _obj_id,int _prop,unsigned int _val,unsigned int _trans_id);
int set_string(unsigned int _obj_id,char *_str,unsigned int _trans_id);