mirror of https://github.com/ericonr/sndio.git
sndiod: Use proper mode to setup conversions
Now we need to use opt's mode instead of slot's mode as this is the one used by dev_cycle(). Fixes monitoring mode not working in case dev->rchan != dev->pchan
This commit is contained in:
parent
12b31d021a
commit
0cb3defc3c
|
@ -1594,7 +1594,7 @@ slot_initconv(struct slot *s)
|
|||
}
|
||||
|
||||
if (s->mode & MODE_RECMASK) {
|
||||
unsigned int outchan = (s->mode & MODE_MON) ?
|
||||
unsigned int outchan = (s->opt->mode & MODE_MON) ?
|
||||
d->pchan : d->rchan;
|
||||
|
||||
s->sub.encbuf = NULL;
|
||||
|
|
Loading…
Reference in New Issue