Skip to content

Commit

Permalink
Fixed deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Apr 28, 2024
1 parent d607206 commit 4ca5c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audioCore/graph/PluginDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ juce::AudioProcessorGraph::Node::Ptr PluginDock::removePluginInternal(int index)
{ {this->midiInputNode->nodeID, this->midiChannelIndex}, {ptrNode->nodeID, this->midiChannelIndex} });

/** Remove Additional Connection */
for (int i = this->audioChannels.size(); i < this->getNumInputChannels(); i++) {
for (int i = this->audioChannels.size(); i < this->getTotalNumInputChannels(); i++) {
juce::AudioProcessorGraph::Connection connection =
{ {this->audioInputNode->nodeID, i}, {ptrNode->nodeID, i} };
this->removeConnection(connection);
Expand Down Expand Up @@ -477,7 +477,7 @@ void PluginDock::insertPluginInternal(
}

/** Connect Additional Bus */
for (int i = this->audioChannels.size(); i < this->getNumInputChannels(); i++) {
for (int i = this->audioChannels.size(); i < this->getTotalNumInputChannels(); i++) {
juce::AudioProcessorGraph::Connection connection =
{ {this->audioInputNode->nodeID, i}, {ptr->nodeID, i} };
this->addConnection(connection);
Expand Down

0 comments on commit 4ca5c5d

Please sign in to comment.