Re: [LAD] jack and c++

From: cal <cal@email-addr-hidden>
Date: Mon Nov 10 2008 - 11:56:25 EET

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
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue Nov 11 00:15:07 2008

This archive was generated by hypermail 2.1.8 : Tue Nov 11 2008 - 00:15:08 EET