Skip to content

Commit eca6192

Browse files
committed
Expose jack_client_t* (HACK)
1 parent 1a8827f commit eca6192

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
@@ -2033,6 +2033,13 @@ struct JackHandle {
20332033
:client(0), drainCounter(0), internalDrain(false) { ports[0] = 0; ports[1] = 0; xrun[0] = false; xrun[1] = false; }
20342034
};
20352035

2036+
#if defined(__UNIX_JACK__)
2037+
void* RtAudio :: HACK__getJackClient()
2038+
{
2039+
return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2040+
}
2041+
#endif
2042+
20362043
#if !defined(__RTAUDIO_DEBUG__)
20372044
static void jackSilentError( const char * ) {};
20382045
#endif

RtAudio.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
609609
//! Specify whether warning messages should be printed to stderr.
610610
void showWarnings( bool value = true );
611611

612+
#if defined(__UNIX_JACK__)
613+
void* HACK__getJackClient();
614+
#endif
615+
612616
protected:
613617

614618
void openRtApi( RtAudio::Api api );
@@ -714,6 +718,8 @@ class S24 {
714718

715719
class RTAUDIO_DLL_PUBLIC RtApi
716720
{
721+
friend RtAudio; // HACK
722+
717723
public:
718724

719725
RtApi();

0 commit comments

Comments
 (0)