diff --git a/aucat/midi.c b/aucat/midi.c index fb7054c..cc51520 100644 --- a/aucat/midi.c +++ b/aucat/midi.c @@ -785,7 +785,7 @@ ctl_trystart(struct aproc *p, int caller) * allocate a new slot and register the given call-backs */ int -ctl_slotnew(struct aproc *p, char *who, struct ctl_ops *ops, void *arg, int tr) +ctl_slotnew(struct aproc *p, char *who, struct ctl_ops *ops, void *arg, int mmc) { int idx; struct ctl_slot *s; @@ -807,7 +807,7 @@ ctl_slotnew(struct aproc *p, char *who, struct ctl_ops *ops, void *arg, int tr) s = p->u.ctl.slot + idx; s->ops = ops; s->arg = arg; - s->tstate = tr ? CTL_STOP : CTL_OFF; + s->tstate = mmc ? CTL_STOP : CTL_OFF; s->ops->vol(s->arg, s->vol); ctl_msg_info(p, idx, msg); ctl_sendmsg(p, NULL, msg, SYSEX_SIZE(mixinfo)); diff --git a/aucat/wav.c b/aucat/wav.c index fe67e95..20c1dc7 100644 --- a/aucat/wav.c +++ b/aucat/wav.c @@ -771,7 +771,7 @@ wav_autohdr(char *name, struct dev *dev, unsigned *hdr, unsigned *mode) struct wav * wav_new_in(struct fileops *ops, struct dev *dev, unsigned mode, char *name, unsigned hdr, - struct aparams *par, unsigned xrun, unsigned volctl, int tr, int join) + struct aparams *par, unsigned xrun, unsigned volctl, int mmc, int join) { int fd; struct wav *f; @@ -816,7 +816,7 @@ wav_new_in(struct fileops *ops, struct dev *dev, f->map = NULL; } f->dev = dev; - f->mmc = tr; + f->mmc = mmc; f->join = join; f->mode = mode; f->hpar = *par; @@ -855,7 +855,7 @@ wav_new_in(struct fileops *ops, struct dev *dev, struct wav * wav_new_out(struct fileops *ops, struct dev *dev, unsigned mode, char *name, unsigned hdr, - struct aparams *par, unsigned xrun, int tr, int join) + struct aparams *par, unsigned xrun, int mmc, int join) { int fd; struct wav *f; @@ -895,7 +895,7 @@ wav_new_out(struct fileops *ops, struct dev *dev, f->startpos = f->endpos = 0; } f->dev = dev; - f->mmc = tr; + f->mmc = mmc; f->join = join; f->mode = mode; f->hpar = *par;