mirror of https://github.com/ericonr/sndio.git
sndiod: No need to initialize s->mix.weight in slot_stop().
It is calculated by dev_mix_adjvol() called by slot_attach().
This commit is contained in:
parent
85a1c81bf7
commit
293d7047bd
|
@ -1866,7 +1866,6 @@ slot_start(struct slot *s)
|
|||
}
|
||||
#endif
|
||||
slot_allocbufs(s);
|
||||
s->mix.weight = MIDI_TO_ADATA(MIDI_MAXCTL);
|
||||
if (s->mode & MODE_PLAY) {
|
||||
s->pstate = SLOT_START;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue