RAM2118 commited on
Commit
24a3c7f
·
verified ·
1 Parent(s): 6063997

Upload Source/Plugin/HelperConnection.h

Browse files
Files changed (1) hide show
  1. Source/Plugin/HelperConnection.h +2 -4
Source/Plugin/HelperConnection.h CHANGED
@@ -38,29 +38,27 @@ public:
38
  std::function<void()> onHelperReady;
39
  std::function<void()> onHelperCrashed;
40
  std::function<void(int, float)> onParamChanged;
 
 
41
 
42
  private:
43
  void timerCallback() override;
44
  void ipcListenLoop();
45
  void handleNotification(const std::string& json);
46
 
47
- // Helper process
48
  pid_t helperPid = 0;
49
  std::atomic<bool> helperRunning{false};
50
  std::atomic<State> state{State::Disconnected};
51
 
52
- // Shared memory
53
  SharedAudioBuffer sharedAudio;
54
  SharedSemaphore inputSem;
55
  SharedSemaphore outputSem;
56
 
57
- // IPC socket (parent is server)
58
  int serverSocketFd = -1;
59
  int clientSocketFd = -1;
60
  std::thread ipcThread;
61
  std::atomic<bool> ipcRunning{false};
62
 
63
- // Command/response synchronization
64
  std::mutex commandMutex;
65
  std::string lastResponse;
66
  std::atomic<bool> responseReady{false};
 
38
  std::function<void()> onHelperReady;
39
  std::function<void()> onHelperCrashed;
40
  std::function<void(int, float)> onParamChanged;
41
+ std::function<void(const juce::String&, int, int)> onGuiReady; // portName, width, height
42
+ std::function<void(int, int)> onGuiResized; // width, height
43
 
44
  private:
45
  void timerCallback() override;
46
  void ipcListenLoop();
47
  void handleNotification(const std::string& json);
48
 
 
49
  pid_t helperPid = 0;
50
  std::atomic<bool> helperRunning{false};
51
  std::atomic<State> state{State::Disconnected};
52
 
 
53
  SharedAudioBuffer sharedAudio;
54
  SharedSemaphore inputSem;
55
  SharedSemaphore outputSem;
56
 
 
57
  int serverSocketFd = -1;
58
  int clientSocketFd = -1;
59
  std::thread ipcThread;
60
  std::atomic<bool> ipcRunning{false};
61
 
 
62
  std::mutex commandMutex;
63
  std::string lastResponse;
64
  std::atomic<bool> responseReady{false};