[alsa-devel] snd_ctl_card_info_t type does not resolve on ubuntu 11.10?
Clemens Ladisch
clemens at ladisch.de
Tue Nov 15 15:33:56 CET 2011
Borg Onion wrote:
> The type "snd_ctl_card_info_t" doesn't seem to resolve by just
> including <alsa/asoundlib.h>.
This structure is not defined to prevent applications from
depending on its binary layout.
Do it like this:
snd_ctl_card_info_t *info;
error = snd_ctl_card_info_malloc(&info);
...
snd_ctl_card_info(handle, &info);
...
snd_ctl_card_info_free(info);
or use alloca instead of malloc/free.
Regards,
Clemens
More information about the Alsa-devel
mailing list