Add specific logging functions for all the events

This commit is contained in:
Robbert van der Helm
2020-03-07 22:29:21 +01:00
parent 280d9fcd2b
commit ee75dcc7e6
4 changed files with 361 additions and 12 deletions
+8 -9
View File
@@ -123,7 +123,6 @@ HostBridge::HostBridge(audioMasterCallback host_callback)
host_callback_function);
}
});
wine_io_handler = std::thread([&]() { io_context.run(); });
// Print the Wine host's STDOUT and STDERR streams to the log file
@@ -199,6 +198,14 @@ void HostBridge::process_replacing(AEffect* /*plugin*/,
}
}
float HostBridge::get_parameter(AEffect* /*plugin*/, int32_t index) {
const Parameter request{index, std::nullopt};
write_object(host_vst_parameters, request);
const auto response = read_object<ParameterResult>(host_vst_parameters);
return response.value.value();
}
void HostBridge::set_parameter(AEffect* /*plugin*/,
int32_t index,
float value) {
@@ -210,14 +217,6 @@ void HostBridge::set_parameter(AEffect* /*plugin*/,
assert(!response.value.has_value());
}
float HostBridge::get_parameter(AEffect* /*plugin*/, int32_t index) {
const Parameter request{index, std::nullopt};
write_object(host_vst_parameters, request);
const auto response = read_object<ParameterResult>(host_vst_parameters);
return response.value.value();
}
void HostBridge::async_log_pipe_lines(bp::async_pipe& pipe,
boost::asio::streambuf& buffer,
std::string prefix) {