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 @@ -2087,6 +2087,13 @@ struct JackHandle {
2087
2087
:client(0 ), drainCounter(0 ), internalDrain(false ) { ports[0 ] = 0 ; ports[1 ] = 0 ; xrun[0 ] = false ; xrun[1 ] = false ; }
2088
2088
};
2089
2089
2090
+ #if defined(__UNIX_JACK__)
2091
+ void * RtAudio :: HACK__getJackClient()
2092
+ {
2093
+ return static_cast <JackHandle*>(rtapi_->stream_ .apiHandle )->client ;
2094
+ }
2095
+ #endif
2096
+
2090
2097
#if !defined(__RTAUDIO_DEBUG__)
2091
2098
static void jackSilentError ( const char * ) {};
2092
2099
#endif
Original file line number Diff line number Diff line change @@ -580,6 +580,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
580
580
*/
581
581
void showWarnings ( bool value = true );
582
582
583
+ #if defined(__UNIX_JACK__)
584
+ void * HACK__getJackClient ();
585
+ #endif
586
+
583
587
protected:
584
588
585
589
void openRtApi ( RtAudio::Api api );
@@ -684,6 +688,8 @@ class S24 {
684
688
685
689
class RTAUDIO_DLL_PUBLIC RtApi
686
690
{
691
+ friend RtAudio; // HACK
692
+
687
693
public:
688
694
689
695
RtApi ();
You can’t perform that action at this time.
0 commit comments