diff --git a/RtAudio.cpp b/RtAudio.cpp index 4651c940..664c07b7 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -2087,6 +2087,13 @@ struct JackHandle { :client(0), drainCounter(0), internalDrain(false) { ports[0] = 0; ports[1] = 0; xrun[0] = false; xrun[1] = false; } }; +#if defined(__UNIX_JACK__) +void* RtAudio :: HACK__getJackClient() +{ + return static_cast(rtapi_->stream_.apiHandle)->client; +} +#endif + #if !defined(__RTAUDIO_DEBUG__) static void jackSilentError( const char * ) {}; #endif diff --git a/RtAudio.h b/RtAudio.h index e7788d5d..0dd70dde 100644 --- a/RtAudio.h +++ b/RtAudio.h @@ -580,6 +580,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio */ void showWarnings( bool value = true ); +#if defined(__UNIX_JACK__) + void* HACK__getJackClient(); +#endif + protected: void openRtApi( RtAudio::Api api ); @@ -684,6 +688,8 @@ class S24 { class RTAUDIO_DLL_PUBLIC RtApi { +friend RtAudio; // HACK + public: RtApi();