mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Replaced SND_CARDS with constant.
This commit is contained in:
parent
35cb79860d
commit
22ff96036a
3 changed files with 3 additions and 3 deletions
|
|
@ -166,7 +166,7 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **handlep, char *name, int card, int devic
|
|||
|
||||
*handlep = NULL;
|
||||
|
||||
assert(card >= 0 && card < SND_CARDS);
|
||||
assert(card >= 0 && card < 32);
|
||||
|
||||
if ((ret = snd_ctl_hw_open(&ctl, NULL, card)) < 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue