[LAD] jack and c++
cal
cal at graggrag.com
Mon Nov 10 09:56:25 UTC 2008
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
More information about the Linux-audio-dev
mailing list