Skip to content

Commit

Permalink
Fix some warnings, leave note about single-client tools
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed May 27, 2022
1 parent 1f03659 commit 86a2ca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,4 @@ Unless compiled with GCC 3.3 or later, jack_interposer only works for
single-CPU machines, or machines configured to run the application under test
on a single CPU.

== Related applications ==

http://trac.jackaudio.org/wiki/WalkThrough/Dev/Tools
This tool only works for single-client applications.
8 changes: 4 additions & 4 deletions jack_interposer.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ bool THREAD_LOCAL in_rt = false;
#include "checkers.c"
#include "manual.c"

JackProcessCallback real_process_callback;
static JackProcessCallback real_process_callback;

int interposed_process_callback(jack_nframes_t nframes, void* arg)
static int interposed_process_callback(jack_nframes_t nframes, void* arg)
{
int result;

Expand All @@ -55,7 +55,7 @@ int interposed_process_callback(jack_nframes_t nframes, void* arg)
int jack_set_process_callback(jack_client_t* client,
JackProcessCallback process_callback, void* arg)
{
static int (*func)() = NULL;
static int (*func)(jack_client_t*, JackProcessCallback, void*) = NULL;
int result;

if (getenv("JACK_INTERPOSER_NO_ABORT") != NULL)
Expand All @@ -64,7 +64,7 @@ int jack_set_process_callback(jack_client_t* client,
fprintf(stderr, "jack_interposer: wrapping process callback\n");

if(!func)
func = (int(*)()) dlsym(RTLD_NEXT, "jack_set_process_callback");
func = (int(*)(jack_client_t*, JackProcessCallback, void*)) dlsym(RTLD_NEXT, "jack_set_process_callback");
if(!func)
{
fprintf(stderr, "Error dlsym'ing jack_set_process_callback\n");
Expand Down

0 comments on commit 86a2ca5

Please sign in to comment.