From: Reuben Martin <reuben.m@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Alsa Callbacks and C++ classes
Date: Sun, 20 Apr 2008 21:28:25 -0500 [thread overview]
Message-ID: <200804202128.25675.reuben.m@gmail.com> (raw)
Hello all,
I have an AES32 sound card that I am trying to write a general control
interface for using qt4. I'm wanting to register callbacks so that the
interface will reflect changes made by other apps. Now I'm not entirely up to
speed on the API, but from what I can gather, the callback can be registered
to call a regular function, or to change a public class variable.
Since I decided to use qt4, everything is in classes. Is there any way to have
the callback trigger a public class function? I guess I don't understand why
you would want to use a public variable instead. Wouldn't you have to set up
a means within the class to continually pole the variable to see if it has
been changed? Or can the option to call a regular function be used to call a
public class function as well?
Go easy on me. I'm not much of an experienced programmer. More of a hack who
can kinda get by with his sloppy programming most of the time.
Thanks,
-Reuben
next reply other threads:[~2008-04-21 2:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 2:28 Reuben Martin [this message]
2008-04-21 15:55 ` Alsa Callbacks and C++ classes Takashi Iwai
2008-04-22 0:49 ` Reuben Martin
2008-04-21 18:08 ` John Utz
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=200804202128.25675.reuben.m@gmail.com \
--to=reuben.m@gmail.com \
--cc=alsa-devel@alsa-project.org \
/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.