Skip to content

Commit

Permalink
[ci] Fix examples not building due to missing virtual functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 5, 2024
1 parent 2bddf52 commit 23769b7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/Editor/example_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ struct my_node final : ossia::graph_node
m_outlets.push_back(new ossia::value_outlet);
}

std::string label() const noexcept overridereturn "my_node"; }
void run(const ossia::token_request& t, ossia::exec_state_facade) noexcept override
{
if(auto a_float = pop_value<float>(this->root_inputs()[0]))
Expand Down
2 changes: 1 addition & 1 deletion examples/Network/OSCQuery_publication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main()
local_proto.expose_to(std::move(oscq));

while(true)
;
std::this_thread::yield();
}

void printValueCallback(const value& v)
Expand Down
1 change: 1 addition & 0 deletions src/ossia/dataflow/nodes/gain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ struct gain_node final : public ossia::nonowning_graph_node
m_outlets.push_back(&audio_out);
}

std::string label() const noexcept overridereturn "gain"; }
void run(const ossia::token_request& t, ossia::exec_state_facade st) noexcept override
{
auto& vals = gain_in.target<ossia::value_port>()->get_data();
Expand Down
1 change: 1 addition & 0 deletions src/ossia/dataflow/nodes/rand_float.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ struct rand_float final : public ossia::nonowning_graph_node
m_outlets.push_back(&value_out);
}

std::string label() const noexcept overridereturn "rand_float"; }
void run(const ossia::token_request& t, ossia::exec_state_facade e) noexcept override
{
thread_local std::mt19937 gen;
Expand Down
2 changes: 2 additions & 0 deletions src/ossia/dataflow/nodes/sine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ struct sine final : public ossia::nonowning_graph_node
m_inlets.push_back(&freq_in);
m_outlets.push_back(&audio_out);
}

std::string label() const noexcept overridereturn "sine"; }
void run(const ossia::token_request& t, ossia::exec_state_facade st) noexcept override
{
auto& vals = freq_in.target<ossia::value_port>()->get_data();
Expand Down

0 comments on commit 23769b7

Please sign in to comment.