Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2578,6 +2578,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
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -745,6 +749,8 @@ class S24 {

class RTAUDIO_DLL_PUBLIC RtApi
{
friend RtAudio; // HACK

public:

RtApi();
Expand Down
Loading