Skip to content

Commit

Permalink
[artnet] Artnet hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Mar 7, 2024
1 parent 6533469 commit d95b3bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ossia/protocols/artnet/artnet_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ artnet_protocol::artnet_protocol(
static constexpr int artnet_subnet_id = 0;
artnet_set_port_type(m_node, artnet_port_id, ARTNET_ENABLE_INPUT, ARTNET_PORT_DMX);
artnet_set_port_addr(m_node, artnet_port_id, ARTNET_INPUT_PORT, m_conf.universe);
artnet_set_subnet_addr(m_node, artnet_subnet_id);
//artnet_set_subnet_addr(m_node, artnet_subnet_id);

artnet_set_short_name(m_node, "libossia");
artnet_set_long_name(m_node, "libossia artnet protocol");
Expand Down Expand Up @@ -98,16 +98,16 @@ artnet_input_protocol::artnet_input_protocol(
#else
bool verbose = 1;
#endif
m_node = artnet_new("192.168.0.55", verbose);
m_node = artnet_new(host.data(), verbose);

if(m_node == NULL)
throw std::runtime_error("Artnet new failed");

static constexpr int artnet_port_id = 0;
static constexpr int artnet_subnet_id = 0;
artnet_set_port_type(m_node, artnet_port_id, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX);
artnet_set_port_addr(m_node, artnet_port_id, ARTNET_OUTPUT_PORT, 0);
artnet_set_subnet_addr(m_node, artnet_subnet_id);
artnet_set_port_addr(m_node, artnet_port_id, ARTNET_OUTPUT_PORT, m_conf.universe);
// artnet_set_subnet_addr(m_node, artnet_subnet_id);

artnet_set_short_name(m_node, "libossia");
artnet_set_long_name(m_node, "libossia artnet protocol");
Expand Down

0 comments on commit d95b3bc

Please sign in to comment.