/* * DISTRHO Cardinal Plugin * Copyright (C) 2021-2023 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of * the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * For a full copy of the GNU General Public License see the LICENSE file. */ #pragma once // #define CARDINAL_DEFAULT_REMOTE_URL "osc.udp://localhost:2228" #define CARDINAL_DEFAULT_REMOTE_URL "osc.udp://192.168.51.1:2228" // ----------------------------------------------------------------------------------------------------------- namespace remoteUtils { struct RemoteDetails { void* handle; const char* url; bool connected; bool autoDeploy; }; RemoteDetails* getRemote(); bool connectToRemote(const char* url); void disconnectFromRemote(RemoteDetails* remote); void idleRemote(RemoteDetails* remote); void sendParamChangeToRemote(RemoteDetails* remote, int64_t moduleId, int paramId, float value); void sendFullPatchToRemote(RemoteDetails* remote); void sendScreenshotToRemote(RemoteDetails* remote, const char* screenshot); } // -----------------------------------------------------------------------------------------------------------