All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reuben Martin <reuben.m@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Alsa Callbacks and C++ classes
Date: Mon, 21 Apr 2008 19:49:54 -0500	[thread overview]
Message-ID: <200804211949.54682.reuben.m@gmail.com> (raw)
In-Reply-To: <s5hskxfb3tu.wl%tiwai@suse.de>

Back on Monday 21 April 2008, Takashi Iwai was like:
> At Sun, 20 Apr 2008 21:28:25 -0500,
>
> Reuben Martin wrote:
> > 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?
>
> Well, which callback do you have in your mind?  A bit more
> specificically please...

Sorry about that. The callbacks I was referring to are mixer callbacks, 
specifically snd_mixer_set_callback and snd_mixer_set_callback_private.

I wrote "public" in my original post, when I meant "private". And now that I'm 
looking at it I think I may have misunderstood what 
snd_mixer_set_callback_private was for.

Anyway, I'm just wondering if it's possible (while maintaining sanity) to 
interface one of these mixer callbacks with a class public function. Or if 
there is a better means to get feedback when changes are made to one of the 
simple mixer elements.

Thanks,
-Reuben

  reply	other threads:[~2008-04-22  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21  2:28 Alsa Callbacks and C++ classes Reuben Martin
2008-04-21 15:55 ` Takashi Iwai
2008-04-22  0:49   ` Reuben Martin [this message]
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=200804211949.54682.reuben.m@gmail.com \
    --to=reuben.m@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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.