mirror of https://github.com/ericonr/sndio.git
Fix initial alternate device number
The initial alternate device number was set to 1 (instead of -1), causing device number 1 to be skipped the first time sndiod is used.
This commit is contained in:
parent
c6d8b54ae9
commit
e79f8b5c2f
|
@ -1023,7 +1023,7 @@ dev_new(char *path, struct aparams *par,
|
|||
dev_addname(d,path);
|
||||
d->num = dev_sndnum++;
|
||||
d->opt_list = NULL;
|
||||
d->alt_num = 1;
|
||||
d->alt_num = -1;
|
||||
|
||||
/*
|
||||
* XXX: below, we allocate a midi input buffer, since we don't
|
||||
|
|
Loading…
Reference in New Issue