15 Nov
2011
15 Nov
'11
3:33 p.m.
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