From: Takashi Iwai Subject: Re: Alsa Callbacks and C++ classes Date: Mon, 21 Apr 2008 17:55:09 +0200 Message-ID: References: <200804202128.25675.reuben.m@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mail.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 37FCF2443F for ; Mon, 21 Apr 2008 17:55:10 +0200 (CEST) In-Reply-To: <200804202128.25675.reuben.m@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Reuben Martin Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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... Takashi