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:
Alexandre Ratchov 2020-07-19 13:07:26 +02:00
parent c6d8b54ae9
commit e79f8b5c2f
1 changed files with 1 additions and 1 deletions

View File

@ -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