apohl79 / audiogridder

DSP servers using general purpose computers and networks
https://audiogridder.com
MIT License
738 stars 77 forks source link

buiding server on linux #982

Closed DCTech-lab closed 1 year ago

apohl79 commented 1 year ago

will take a look soonish. cheers.

apohl79 commented 1 year ago

Do you intend to add more to the PR? It is pretty much incomplete (screen capturing, keyboard & mouse support etc) and causes new compiler warnings. If this is really just to make it compile and use the the generic editor for plugins hosted on linux, you should

thanks for the PR!

DC-codes commented 1 year ago

Hi Apohl,

For native screen capturing, can't we use generic JUCE functions like createComponentSnapshot, as in below code: auto editor = plugin->getActiveEditor(); auto editorRectangle = editor->getBounds(); auto image = editor->createComponentSnapshot(editorRectangle, true); JPEGImageFormat jpegFormat = JPEGImageFormat(); jpegFormat.writeImageToStream(image, socket2Client);

Here we may not have fine control over brightness etc, but that is simple and plateform independent. Actually for linux part i thought to add in that way.

Also we can use generic JUCE key press events instead of plateform specific native code

Thanks,

apohl79 commented 1 year ago

Hi Apohl,

For native screen capturing, can't we use generic JUCE functions like createComponentSnapshot, as in below code: auto editor = plugin->getActiveEditor(); auto editorRectangle = editor->getBounds(); auto image = editor->createComponentSnapshot(editorRectangle, true); JPEGImageFormat jpegFormat = JPEGImageFormat(); jpegFormat.writeImageToStream(image, socket2Client);

Here we may not have fine control over brightness etc, but that is simple and plateform independent. Actually for linux part i thought to add in that way.

Also we can use generic JUCE key press events instead of plateform specific native code

Thanks,

Hey Durgesh,

this was my very first approach, but the problem is that you can't capture context menus using this approach.

Best, Andreas

DCTech-lab commented 1 year ago

Fixed the warnings and did a rough implementation of screen capture and mouse / key handling. The changes in server.hpp is to remove conversion warning and was not due to my changes.

Could not test the feature as the plugin (chowmatrix from github) window doesnt show gui and later size becomes zero (though show plugin window button on from window client on reaper works). Needs fixing the plugin window issue first to test the feature. Code compiles and runs fine on windows and linux (xubuntu)

apohl79 commented 1 year ago

Sorry for the delay. I just had one question, but I'm going to merge this soon. Thanks for this!