Add direct parameter changes to remote control, for LV2 and OSC
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
91cac905cc
commit
d0eba9e1ae
11 changed files with 136 additions and 33 deletions
|
|
@ -585,9 +585,10 @@ static void Window__downscaleBitmap(uint8_t* pixels, int& width, int& height) {
|
|||
static void Window__writeImagePNG(void* context, void* data, int size) {
|
||||
USE_NAMESPACE_DISTRHO
|
||||
CardinalBaseUI* const ui = static_cast<CardinalBaseUI*>(context);
|
||||
if (const char* const screenshot = String::asBase64(data, size).buffer()) {
|
||||
if (char* const screenshot = String::asBase64(data, size).getAndReleaseBuffer()) {
|
||||
ui->setState("screenshot", screenshot);
|
||||
remoteUtils::sendScreenshotToRemote(ui->remoteDetails, screenshot);
|
||||
std::free(screenshot);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue