Maarten de Boer wrote:
> Why don't you take it one step further, and call a method of audJ
> right away, so you don't have use audJ-> all the time?
> 
> class AudioOutputJACK
> {
>     [...]
>     static int sProcessJackCallback(jack_nframes_t nframes, void* arg)
>     {
>        AudioOutputJACK* audJ = static_cast<AudioOutputJACK*>(arg);
>        return audJ->ProcessJackCallback(nframes)
>     }
>     int ProcessJackCallback(jack_nframes_t nframes)
>     {
>        [...]
>     }
> };

That's where I originally started, but I came to the conclusion it was just
extra verbosity and complexity for no real benefit. For the amount of work
that gets done in the callback, audJ-> is fine for my needs.

cheers, Cal
_______________________________________________
Linux-audio-dev mailing list
[email protected]
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Reply via email to