version 1.44, 2012/09/25 20:12:34 |
version 1.45, 2012/10/27 08:31:59 |
|
|
} |
} |
|
|
void |
void |
midi_msg_info(struct aproc *p, int slot, char *msg) |
midi_msg_info(struct aproc *p, int slot, unsigned char *msg) |
{ |
{ |
struct ctl_slot *s; |
struct ctl_slot *s; |
struct sysex *x = (struct sysex *)msg; |
struct sysex *x = (struct sysex *)msg; |
|
|
x->id0 = SYSEX_AUCAT; |
x->id0 = SYSEX_AUCAT; |
x->id1 = SYSEX_AUCAT_MIXINFO; |
x->id1 = SYSEX_AUCAT_MIXINFO; |
if (*s->name != '\0') { |
if (*s->name != '\0') { |
snprintf(x->u.mixinfo.name, |
snprintf((char *)x->u.mixinfo.name, |
SYSEX_NAMELEN, "%s%u", s->name, s->unit); |
SYSEX_NAMELEN, "%s%u", s->name, s->unit); |
} |
} |
x->u.mixinfo.chan = slot; |
x->u.mixinfo.chan = slot; |
|
|
} |
} |
|
|
void |
void |
midi_msg_vol(struct aproc *p, int slot, char *msg) |
midi_msg_vol(struct aproc *p, int slot, unsigned char *msg) |
{ |
{ |
struct ctl_slot *s; |
struct ctl_slot *s; |
|
|
|
|
} |
} |
|
|
void |
void |
midi_msg_master(struct aproc *p, char *msg) |
midi_msg_master(struct aproc *p, unsigned char *msg) |
{ |
{ |
struct sysex *x = (struct sysex *)msg; |
struct sysex *x = (struct sysex *)msg; |
|
|