Skip to content

Commit 8a362b1

Browse files
committed
Expose jack_client_t* (HACK)
1 parent b4f0490 commit 8a362b1

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
@@ -2548,6 +2548,13 @@ std::string escapeJackPortRegex(std::string &str)
25482548
return escaped_string;
25492549
}
25502550

2551+
#if defined(__UNIX_JACK__)
2552+
void* RtAudio :: HACK__getJackClient()
2553+
{
2554+
return static_cast<JackHandle*>(rtapi_->stream_.apiHandle)->client;
2555+
}
2556+
#endif
2557+
25512558
#if !defined(__RTAUDIO_DEBUG__)
25522559
static void jackSilentError( const char * ) {};
25532560
#endif

RtAudio.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ class RTAUDIO_DLL_PUBLIC RtAudio
640640
*/
641641
void showWarnings( bool value = true );
642642

643+
#if defined(__UNIX_JACK__)
644+
void* HACK__getJackClient();
645+
#endif
646+
643647
protected:
644648

645649
void openRtApi( RtAudio::Api api );
@@ -744,6 +748,8 @@ class S24 {
744748

745749
class RTAUDIO_DLL_PUBLIC RtApi
746750
{
751+
friend RtAudio; // HACK
752+
747753
public:
748754

749755
RtApi();

0 commit comments

Comments
 (0)