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 @@ -2033,6 +2033,13 @@ struct JackHandle {
2033
2033
:client(0), drainCounter(0), internalDrain(false) { ports[0] = 0; ports[1] = 0; xrun[0] = false; xrun[1] = false; }
2034
2034
};
2035
2035
2036
+ #if defined(__UNIX_JACK__)
2037
+ void* RtAudio :: HACK__getJackClient()
2038
+ {
2039
+ return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2040
+ }
2041
+ #endif
2042
+
2036
2043
#if !defined(__RTAUDIO_DEBUG__)
2037
2044
static void jackSilentError( const char * ) {};
2038
2045
#endif
Original file line number Diff line number Diff line change @@ -609,6 +609,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
609
609
// ! Specify whether warning messages should be printed to stderr.
610
610
void showWarnings ( bool value = true );
611
611
612
+ #if defined(__UNIX_JACK__)
613
+ void * HACK__getJackClient ();
614
+ #endif
615
+
612
616
protected:
613
617
614
618
void openRtApi ( RtAudio::Api api );
@@ -714,6 +718,8 @@ class S24 {
714
718
715
719
class RTAUDIO_DLL_PUBLIC RtApi
716
720
{
721
+ friend RtAudio; // HACK
722
+
717
723
public:
718
724
719
725
RtApi ();
You can’t perform that action at this time.
0 commit comments