File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2046,6 +2046,13 @@ struct JackHandle {
2046
2046
:client(0), drainCounter(0), internalDrain(false) { ports[0] = 0; ports[1] = 0; xrun[0] = false; xrun[1] = false; }
2047
2047
};
2048
2048
2049
+ #if defined(__UNIX_JACK__)
2050
+ void* RtAudio :: HACK__getJackClient()
2051
+ {
2052
+ return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2053
+ }
2054
+ #endif
2055
+
2049
2056
#if !defined(__RTAUDIO_DEBUG__)
2050
2057
static void jackSilentError( const char * ) {};
2051
2058
#endif
Original file line number Diff line number Diff line change @@ -596,6 +596,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
596
596
// ! Specify whether warning messages should be printed to stderr.
597
597
void showWarnings ( bool value = true );
598
598
599
+ #if defined(__UNIX_JACK__)
600
+ void * HACK__getJackClient ();
601
+ #endif
602
+
599
603
protected:
600
604
601
605
void openRtApi ( RtAudio::Api api );
@@ -700,6 +704,8 @@ class S24 {
700
704
701
705
class RTAUDIO_DLL_PUBLIC RtApi
702
706
{
707
+ friend RtAudio; // HACK
708
+
703
709
public:
704
710
705
711
RtApi ();
You can’t perform that action at this time.
0 commit comments