Skip to content

Commit

Permalink
fp: enable fpe safety for select plug-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 6, 2025
1 parent ea09d07 commit 8f54983
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/score-plugin-jit/JitCpp/AvndJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ __attribute__ ((visibility("default")))
extern "C" ossia::graph_node* avnd_factory(int buffersize, double rate) {{
using type = decltype(avnd::configure<oscr::config, Node>())::type;
auto n = new oscr::safe_node<type>(buffersize, rate, 0);
n->set_not_fp_safe();
n->finish_init();
n->audio_configuration_changed();
return n;
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/score-plugin-lv2/LV2/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ struct lv2_node final : public ossia::graph_node
, on_start{os}
, on_finished{of}
{
this->set_not_fp_safe();

const std::size_t audio_in_size = data.audio_in_ports.size();
const std::size_t audio_out_size = data.audio_out_ports.size();
const std::size_t control_in_size = data.control_in_ports.size();
Expand Down
1 change: 1 addition & 0 deletions src/plugins/score-plugin-vst/Vst/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class vst_node_base : public ossia::graph_node
explicit vst_node_base(std::shared_ptr<AEffectWrapper>&& ptr)
: fx{std::move(ptr)}
{
this->set_not_fp_safe();
m_inlets.reserve(10);
controls.reserve(10);
}
Expand Down
1 change: 1 addition & 0 deletions src/plugins/score-plugin-vst3/Vst3/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class vst_node_base : public ossia::graph_node
explicit vst_node_base(const Plugin& ptr)
: fx{std::move(ptr)}
{
this->set_not_fp_safe();
m_inlets.reserve(10);
controls.reserve(10);

Expand Down

0 comments on commit 8f54983

Please sign in to comment.