Skip to content

Commit 8a2fa96

Browse files
committed
Fix sample rate display in lfp viewer
1 parent 014c4cb commit 8a2fa96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Source/Plugins/LfpDisplayNode/LfpDisplayEditor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ void LfpDisplayEditor::comboBoxChanged(juce::ComboBox *cb)
109109
{
110110
std::cout << "Setting subprocessor to " << cb->getSelectedId() << std::endl;
111111
setCanvasDrawableSubprocessor(cb->getSelectedId() - 1);
112+
String sampleRateLabelText = "Sample Rate: ";
113+
sampleRateLabelText += String(inputSampleRates[cb->getSelectedId() - 1]);
114+
subprocessorSampleRateLabel->setText(sampleRateLabelText, dontSendNotification);
112115
}
113116
}
114117

0 commit comments

Comments
 (0)