Logo Search packages:      
Sourcecode: jacktrip version File versions  Download package

int JackAudioInterface::wrapperProcessCallback ( jack_nframes_t  nframes,
void *  arg 
) [static, private]

Wrapper to cast the member processCallback to a static function pointer that can be used with jack_set_process_callback

jack_set_process_callback needs a static member function pointer. A normal member function won't work because a this pointer is passed under the scenes. That's why we need to cast the member funcion processCallback to the static function wrapperProcessCallback. The callback is then set as:
jack_set_process_callback(mClient, JackAudioInterface::wrapperProcessCallback, this)

Definition at line 522 of file JackAudioInterface.cpp.

References processCallback().

Referenced by setProcessCallback().

{
  return static_cast<JackAudioInterface*>(arg)->processCallback(nframes);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index