mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Get rid of the STDIN/STDOUT redirections
Not needed anymore.
This commit is contained in:
@@ -57,15 +57,11 @@ Bridge::Bridge()
|
|||||||
socket_endpoint(generate_endpoint_name().string()),
|
socket_endpoint(generate_endpoint_name().string()),
|
||||||
socket_acceptor(io_context, socket_endpoint),
|
socket_acceptor(io_context, socket_endpoint),
|
||||||
host_vst_dispatch(io_context),
|
host_vst_dispatch(io_context),
|
||||||
vst_stdin(),
|
|
||||||
vst_stdout(),
|
|
||||||
vst_host(find_wine_vst_host(),
|
vst_host(find_wine_vst_host(),
|
||||||
// The Wine VST host needs to know which plugin to load and which
|
// The Wine VST host needs to know which plugin to load and which
|
||||||
// Unix domain socket to connect to
|
// Unix domain socket to connect to
|
||||||
find_vst_plugin(),
|
find_vst_plugin(),
|
||||||
socket_endpoint.path(),
|
socket_endpoint.path(),
|
||||||
bp::std_in = vst_stdin,
|
|
||||||
bp::std_out = vst_stdout,
|
|
||||||
bp::env = set_wineprefix()) {
|
bp::env = set_wineprefix()) {
|
||||||
// It's very important that these sockets are connected to in the same order
|
// It's very important that these sockets are connected to in the same order
|
||||||
// in the Wine VST host
|
// in the Wine VST host
|
||||||
|
|||||||
+2
-4
@@ -30,8 +30,8 @@
|
|||||||
class Bridge {
|
class Bridge {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Initializes the Wine VST bridge. This sets up the STDIN/STDOUT streams
|
* Initializes the Wine VST bridge. This sets up the sockets for event
|
||||||
* for event handling and a shared memory buffer for passing audio.
|
* handling.
|
||||||
*
|
*
|
||||||
* TODO: Figure out whether shared memory gives us better throughput and/or
|
* TODO: Figure out whether shared memory gives us better throughput and/or
|
||||||
* lower overhead than using a Unix domain socket would.
|
* lower overhead than using a Unix domain socket would.
|
||||||
@@ -72,7 +72,5 @@ class Bridge {
|
|||||||
// plugin (through the Wine VST host).
|
// plugin (through the Wine VST host).
|
||||||
boost::asio::local::stream_protocol::socket host_vst_dispatch;
|
boost::asio::local::stream_protocol::socket host_vst_dispatch;
|
||||||
|
|
||||||
boost::process::opstream vst_stdin;
|
|
||||||
boost::process::ipstream vst_stdout;
|
|
||||||
boost::process::child vst_host;
|
boost::process::child vst_host;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user