Robbert van der Helm
b2b6a606ea
Silence -Wunused-result warnings
2022-04-16 20:37:10 +02:00
Robbert van der Helm
25f298636a
Add now missing include
2022-04-16 20:37:10 +02:00
Robbert van der Helm
03dfc66e30
Remove obselete boost-fix header
2022-04-16 20:37:10 +02:00
Robbert van der Helm
c8bbdc4f54
Get rid of the last uses of Boost.Process
2022-04-16 20:37:10 +02:00
Robbert van der Helm
037d6ad5aa
Replace Boost.Process for the Wine plugin host
...
Now we use our own library for this, so we can drop the Boost.Filesystem
dependency after a couple more changes.
2022-04-16 20:37:10 +02:00
Robbert van der Helm
f79b0fd146
Fix Process file redirection
2022-04-16 20:37:10 +02:00
Robbert van der Helm
642c341d26
Handle waiting on a dead process
2022-04-16 20:37:10 +02:00
Robbert van der Helm
b6e63ea0d5
Add a function for searching through PATH
2022-04-16 20:37:10 +02:00
Robbert van der Helm
33b49dd7a5
Make the process building functions chainable
2022-04-16 20:37:10 +02:00
Robbert van der Helm
8d40341ade
Add a function for splitting search paths
2022-04-16 20:37:10 +02:00
Robbert van der Helm
a5ded46f27
Add a detach function to the process handles
2022-04-16 20:37:10 +02:00
Robbert van der Helm
75b3cf266d
Add Process functions for detached spawning
2022-04-16 20:37:10 +02:00
Robbert van der Helm
1df7abfb2c
Terminate handles when they get dropped
2022-04-14 23:42:12 +02:00
Robbert van der Helm
1641fb2996
Fix find_dominating_file() for ghc::filesystem
...
"/".parent() now is "/" instead of "" (which does make more sense)
2022-04-14 23:42:12 +02:00
Robbert van der Helm
a324042695
Use custom process library for notifications
...
Instead of using Boost.Process here. Last usage of Boost.Process is for
launching the child process.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
b80a30ba2a
Redirect STDERR to /dev/null in process spawn
2022-04-14 23:42:12 +02:00
Robbert van der Helm
006cc6f52a
Read the Wine version without Boost.Process
...
By spawning the process using posix_spawn and manually reading from a
pipe.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
60e4619ef1
Move pid_running() to process.h
2022-04-14 23:42:12 +02:00
Robbert van der Helm
0d6738093c
Add a Boost.Process-like environment builder
...
We can use this with the `exec*e()` family of functions.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
556b0e38f9
Replace Boost.Asio with standalone Asio library
...
We had to add an even hackier hack now to get Boost.Process to
interoperate with Asio's IO contexts. This will be replaced later when
we replace Boost.Process.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
d2d4cf4ea9
Replace most uses of Boost.{Filesystem,Process}
...
With the `ghc::filesystem` dependency from the previous commit. If we
can replace the rest of the Boost.Filesystem dependency then we can get
rid the one nasty runtime dependency we have, and it will make
implementing the chainloading simpler since can reuse more code without
bringing in Boost.
2022-04-14 23:42:12 +02:00
Robbert van der Helm
45e5b06099
Fix Meson deprecation warning
2022-04-14 23:42:11 +02:00
Robbert van der Helm
6d02ceb277
Filter out effProcessEvents on verbosity level 1
2022-04-11 12:39:09 +02:00
Robbert van der Helm
4c4421d3e3
Don't requery the VST3 param change queues length
...
Since this shouldn't be able to change. Should speed up parameter
handling when many parameters are being automated.
2022-03-09 17:43:25 +01:00
Robbert van der Helm
c528a9ef49
Explicitly handle no and pointer root input focus
...
This will never happen under normal X11. Apparently Crostini isn't
normal X11.
See #167 .
2022-03-05 00:39:01 +01:00
Robbert van der Helm
f298a8ae2b
Delay VST2 editor window sizing
...
To work around a buggy plugin.
2022-02-27 00:59:50 +01:00
Robbert van der Helm
823f6bb239
Prevent realtime scheduling for ad-hoc acceptors
...
I noticed that there were some realtime adhoc-acceptors running on my
system. That should of course not happen, since these only exist to
catch some sporadic (and likely as a result of a badly behaving plugin)
mutual recursion on the audio thread.
2022-02-08 02:20:18 +01:00
Robbert van der Helm
de470d345a
Fix building under Wine 7.2
...
Which isn't out yet, but this already affects the current master branch.
2022-02-02 13:56:05 +01:00
Robbert van der Helm
d6260c1d6b
Delay editor_force_xdnd until the reparent #160
...
This fixes the option not working correctly when REAPER reparents the
plugin's window to a new FX window.
2022-01-29 01:46:08 +01:00
Robbert van der Helm
92a09832d8
Fix a typo in a comment in the plugin lookup
2022-01-27 21:18:12 +01:00
Robbert van der Helm
1b8248d672
Process offline audio from the GUI thread
...
Because T-RackS 5 won't have it any other way.
2022-01-19 18:18:20 +01:00
Robbert van der Helm
9eb1d2af3d
Change RTTIME warnings and doc for next PW release
...
The next release will use regular realtime scheduling with no
`RLIMIT_RTTIME` when the user has the permissions to do so by default.
2022-01-17 15:33:42 +01:00
Robbert van der Helm
78f9b00a81
Fix missing option name in last commit
2022-01-15 14:32:51 +01:00
Robbert van der Helm
02a66cba16
Update tomlplusplus dependency to 3.0.1
...
Last minute update because Arch started packaging this version yesterday
and there are breaking API changes compared to version 2.5.x.
2022-01-15 14:27:34 +01:00
Robbert van der Helm
390df5c264
Add check flag to Meson run_command()
...
The default value will change soon, so Meson is now showing warnings if
you haven't set an explicit value.
2022-01-15 13:59:03 +01:00
Robbert van der Helm
4767b758b8
Delay showing editor the window
...
This fixes Waves V13 VST3 plugins crashing when opening the editor. They
will likely still crash later on anyways because they're kinda broken.
Amazing.
2022-01-09 00:41:14 +01:00
Robbert van der Helm
4e78a75caa
Fix the winedbg support after 0b9a16c
2022-01-04 02:29:30 +01:00
Robbert van der Helm
c625deadef
Proxy host context menu items for VST3 plugins
...
This wasn't implemented yet because no plugin tried using the interface
in this way before this, but Surge XT incorporates the host's context
menu items into their own (much more elaborate) context menu. To
accommodate this, we now copy over all of the host's prepopulated
context menu items to the Wine plugin host, and calling the targets
associated with any of those items will cause the target on the
associated context menu item on the host to be called.
This is slightly more complicated than what would otherwise be necessary
because Bitwig does not assign tags to their context menu items and
instead always uses 0.
2022-01-03 17:04:00 +01:00
Robbert van der Helm
89cd1e9ee3
Fix IContextMenuTarget::ExecuteMenuItem logging
2022-01-03 15:17:35 +01:00
Robbert van der Helm
0e3aba1870
Move the VST3 context menu target implementation
...
So it can also be used on the Wine side in a bit.
2022-01-03 14:12:25 +01:00
Robbert van der Helm
0b9a16cf40
Change the naming scheme for class field members
...
I'm not a fan of Hungarian notation, but C++ kind of needs it with its
implicit `this`. And of all the common options for this, I find
suffixing members with an underscore the least offensive one.
2022-01-01 21:07:17 +01:00
Robbert van der Helm
e0ab24e645
Update copyright headers
...
Happy new year!
2022-01-01 18:32:10 +01:00
Robbert van der Helm
dad3645156
Add a todo about backing rwlocks with a spinlock
2021-12-29 15:44:32 +01:00
Robbert van der Helm
85f05e0eab
Also use rwlocks on the VST3 plugin side
2021-12-28 19:05:56 +01:00
Robbert van der Helm
1507e4f574
Use multiple reader single writer locks for VST3
...
This would also need to be done on the plugin side.
2021-12-28 18:51:14 +01:00
Robbert van der Helm
2137d79229
Disconnect the correct connection point proxy
2021-12-28 17:09:36 +01:00
Robbert van der Helm
d48dbe71da
Redundantly limit number of drag-and-drop formats
...
As reported in #149 , the DrumCore 3 plugin would segfault when trying to
drag files from it. This happened because the plugin presumably
underflows somewhere and then reports that it supports 4294967282
different drag-and-drop formats, even though yabridge asked for a
maximum of 16.
2021-12-16 01:52:37 +01:00
Robbert van der Helm
35244d2c7f
Support Wine 6.23's fixed winedbg arg handling
...
I was about to rebase the patch I've been resubmitting to Wine that
fixed this when I noticed that
https://github.com/wine-mirror/wine/commit/94ca4be2a62cdb05adaee524084875b04b283afb
now does the same thing.
2021-12-07 00:59:07 +01:00
Robbert van der Helm
c054398965
Increase Win32 message limit for JUCE plugins
...
They aggressively use the message loop when parts of a plugin's UI
change, sometimes sending as many is 2300 events at once. The old 20
messages per tick limit would cause severe slowdowns in this case.
2021-11-30 03:48:08 +01:00
Robbert van der Helm
ce8e4dccdf
Move Win32 message limit constant
2021-11-30 03:28:05 +01:00