You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021-2024 Filipe Coelho <falktx@falktx.com>
  4. * SPDX-License-Identifier: GPL-3.0-or-later
  5. */
  6. #pragma once
  7. #define CARDINAL_DEFAULT_REMOTE_PORT "2228"
  8. #define CARDINAL_DEFAULT_REMOTE_URL "osc.udp://192.168.51.1:2228"
  9. // -----------------------------------------------------------------------------------------------------------
  10. namespace remoteUtils {
  11. struct RemoteDetails {
  12. void* handle;
  13. const char* url;
  14. bool autoDeploy;
  15. bool first;
  16. bool connected;
  17. bool screenshot;
  18. };
  19. RemoteDetails* getRemote();
  20. bool connectToRemote(const char* url);
  21. void disconnectFromRemote(RemoteDetails* remote);
  22. void idleRemote(RemoteDetails* remote);
  23. void sendParamChangeToRemote(RemoteDetails* remote, int64_t moduleId, int paramId, float value);
  24. void sendFullPatchToRemote(RemoteDetails* remote);
  25. void sendScreenshotToRemote(RemoteDetails* remote, const char* screenshot);
  26. }
  27. // -----------------------------------------------------------------------------------------------------------