Skip to content

Commit ae9add4

Browse files
committed
Expose jack_client_t* (HACK)
1 parent f9fd872 commit ae9add4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

RtAudio.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,13 @@ struct JackHandle {
20872087
:client(0), drainCounter(0), internalDrain(false) { ports[0] = 0; ports[1] = 0; xrun[0] = false; xrun[1] = false; }
20882088
};
20892089

2090+
#if defined(__UNIX_JACK__)
2091+
void* RtAudio :: HACK__getJackClient()
2092+
{
2093+
return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2094+
}
2095+
#endif
2096+
20902097
#if !defined(__RTAUDIO_DEBUG__)
20912098
static void jackSilentError( const char * ) {};
20922099
#endif

RtAudio.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
580580
*/
581581
void showWarnings( bool value = true );
582582

583+
#if defined(__UNIX_JACK__)
584+
void* HACK__getJackClient();
585+
#endif
586+
583587
protected:
584588

585589
void openRtApi( RtAudio::Api api );
@@ -684,6 +688,8 @@ class S24 {
684688

685689
class RTAUDIO_DLL_PUBLIC RtApi
686690
{
691+
friend RtAudio; // HACK
692+
687693
public:
688694

689695
RtApi();

0 commit comments

Comments
 (0)