mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Control API encapsulation. Better names for kernel API. Simpler PCM hw_params API. Added missing const.
This commit is contained in:
parent
ccb399f0cd
commit
8f0cb26fdf
71 changed files with 2001 additions and 694 deletions
|
|
@ -108,7 +108,7 @@ int main(void)
|
|||
{
|
||||
snd_ctl_t *ctl_handle;
|
||||
int cards, card, err, idx;
|
||||
snd_ctl_hw_info_t info;
|
||||
snd_ctl_info_t info;
|
||||
|
||||
cards = snd_cards();
|
||||
printf("Detected %i soundcard%s...\n", cards, cards > 1 ? "s" : "");
|
||||
|
|
@ -122,7 +122,7 @@ int main(void)
|
|||
printf("CTL open error: %s\n", snd_strerror(err));
|
||||
continue;
|
||||
}
|
||||
if ((err = snd_ctl_hw_info(ctl_handle, &info)) < 0) {
|
||||
if ((err = snd_ctl_info(ctl_handle, &info)) < 0) {
|
||||
printf("HWINFO error: %s\n", snd_strerror(err));
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue