Skip to content

Commit d552bbd

Browse files
aacuevaskmichaelfox
authored andcommitted
Fix crash when selecting channels for audio while acquiring
(Audio playing is still not working properly, but at least it won't cause crashes)
1 parent cfa4b85 commit d552bbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Processors/AudioNode/AudioNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void AudioNode::updateBufferSize()
7575
void AudioNode::setChannel(const DataChannel* ch)
7676
{
7777

78-
int channelNum = dataChannelArray.indexOf(ch);
78+
int channelNum = getDataChannelIndex(ch->getSourceIndex(), ch->getSourceNodeID(), ch->getSubProcessorIdx());
7979

8080
std::cout << "Audio node setting channel to " << channelNum << std::endl;
8181

0 commit comments

Comments
 (0)