Skip to content

Commit

Permalink
Node: Properly through channel count exception in audio thread to pre…
Browse files Browse the repository at this point in the history
…vent crashing Jupyter
  • Loading branch information
ideoforms committed Sep 10, 2024
1 parent 03007c5 commit 1ffaaba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/src/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ void Node::update_channels()
NodeRef input_node = *ptr;
if (input_node->get_num_output_channels() > this->num_input_channels)
{
throw invalid_channel_count_exception("Node " + input_node->get_name() + " has more output channels than " + this->name + " supports (" + std::to_string(input_node->get_num_output_channels()) + " > " + std::to_string(this->num_input_channels) + "). Either downmix with ChannelMixer, or select the intended channels with ChannelSelect.");
std::string message = "Node " + input_node->get_name() + " has more output channels than " + this->name + " supports (" + std::to_string(input_node->get_num_output_channels()) + " > " + std::to_string(this->num_input_channels) + "). Either downmix with ChannelMixer, or select the intended channels with ChannelSelect.";
signalflow_audio_thread_error(message);
}
}
}
Expand Down

0 comments on commit 1ffaaba

Please sign in to comment.