Skip to content

Commit 09c3e7b

Browse files
committed
Expose jack_client_t* (HACK)
1 parent 46b01b5 commit 09c3e7b

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

2049+
#if defined(__UNIX_JACK__)
2050+
void* RtAudio :: HACK__getJackClient()
2051+
{
2052+
return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2053+
}
2054+
#endif
2055+
20492056
#if !defined(__RTAUDIO_DEBUG__)
20502057
static void jackSilentError( const char * ) {};
20512058
#endif

RtAudio.h

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

599+
#if defined(__UNIX_JACK__)
600+
void* HACK__getJackClient();
601+
#endif
602+
599603
protected:
600604

601605
void openRtApi( RtAudio::Api api );
@@ -700,6 +704,8 @@ class S24 {
700704

701705
class RTAUDIO_DLL_PUBLIC RtApi
702706
{
707+
friend RtAudio; // HACK
708+
703709
public:
704710

705711
RtApi();

0 commit comments

Comments
 (0)