version 1.46, 2018/06/26 07:44:35 |
version 1.47, 2018/06/26 07:49:44 |
|
|
#endif |
#endif |
s->next = d->slot_list; |
s->next = d->slot_list; |
d->slot_list = s; |
d->slot_list = s; |
s->skip = 0; |
|
if (s->mode & MODE_PLAY) { |
if (s->mode & MODE_PLAY) { |
s->mix.vol = MIDI_TO_ADATA(s->vol); |
s->mix.vol = MIDI_TO_ADATA(s->vol); |
dev_mix_adjvol(d); |
dev_mix_adjvol(d); |
} |
} |
if (s->mode & MODE_RECMASK) { |
|
/* |
|
* N-th recorded block is the N-th played block |
|
*/ |
|
s->sub.prime = -startpos / (int)s->round; |
|
} |
|
} |
} |
|
|
/* |
/* |
|
|
} |
} |
#endif |
#endif |
slot_allocbufs(s); |
slot_allocbufs(s); |
|
|
|
if (s->mode & MODE_RECMASK) { |
|
/* |
|
* N-th recorded block is the N-th played block |
|
*/ |
|
s->sub.prime = -dev_getpos(s->dev) / s->dev->round; |
|
} |
|
s->skip = 0; |
|
|
if (s->mode & MODE_PLAY) { |
if (s->mode & MODE_PLAY) { |
s->pstate = SLOT_START; |
s->pstate = SLOT_START; |
} else { |
} else { |