diff --git a/RtAudio.cpp b/RtAudio.cpp index 4343ff8d..ca57a81f 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -2578,6 +2578,13 @@ std::string escapeJackPortRegex(std::string &str) return escaped_string; } +#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 48552b66..740df005 100644 --- a/RtAudio.h +++ b/RtAudio.h @@ -641,6 +641,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 ); @@ -745,6 +749,8 @@ class S24 { class RTAUDIO_DLL_PUBLIC RtApi { +friend RtAudio; // HACK + public: RtApi();