Skip to content

Commit

Permalink
Expose jack_client_t* (HACK)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Aug 25, 2023
1 parent b4f0490 commit 8a362b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RtAudio.cpp
Expand Up @@ -2548,6 +2548,13 @@ std::string escapeJackPortRegex(std::string &str)
return escaped_string;
}

#if defined(__UNIX_JACK__)
void* RtAudio :: HACK__getJackClient()
{
return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
}
#endif

#if !defined(__RTAUDIO_DEBUG__)
static void jackSilentError( const char * ) {};
#endif
Expand Down
6 changes: 6 additions & 0 deletions RtAudio.h
Expand Up @@ -640,6 +640,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 );
Expand Down Expand Up @@ -744,6 +748,8 @@ class S24 {

class RTAUDIO_DLL_PUBLIC RtApi
{
friend RtAudio; // HACK

public:

RtApi();
Expand Down

0 comments on commit 8a362b1

Please sign in to comment.