From: Clemens Ladisch <clemens@ladisch.de>
To: Borg Onion <borg.onion@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_ctl_card_info_t type does not resolve on ubuntu 11.10?
Date: Tue, 15 Nov 2011 15:33:56 +0100 [thread overview]
Message-ID: <4EC27854.8090503@ladisch.de> (raw)
In-Reply-To: <CAAs5ODuR235O9GTcuJqUGg1+5UnQnOeed=cBck7oh3_71H5k0A@mail.gmail.com>
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
prev parent reply other threads:[~2011-11-15 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 13:10 snd_ctl_card_info_t type does not resolve on ubuntu 11.10? Borg Onion
2011-11-15 14:33 ` Clemens Ladisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EC27854.8090503@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=borg.onion@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.