mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Better names for control API
This commit is contained in:
parent
66f13f6115
commit
45c416ed82
22 changed files with 666 additions and 668 deletions
|
|
@ -32,7 +32,7 @@ int main(void)
|
|||
{
|
||||
int idx, idx1, cards, err;
|
||||
snd_ctl_t *handle;
|
||||
snd_ctl_info_t info;
|
||||
snd_ctl_card_info_t info;
|
||||
|
||||
cards = snd_cards();
|
||||
printf("Detected %i soundcard%s...\n", cards, cards > 1 ? "s" : "");
|
||||
|
|
@ -45,7 +45,7 @@ int main(void)
|
|||
printf("Open error: %s\n", snd_strerror(err));
|
||||
continue;
|
||||
}
|
||||
if ((err = snd_ctl_info(handle, &info)) < 0) {
|
||||
if ((err = snd_ctl_card_info(handle, &info)) < 0) {
|
||||
printf("HW info error: %s\n", snd_strerror(err));
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue