Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/NeuralRecord/PluginNeuralCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void PluginNeuralCapture::initProgramName(uint32_t index, String& programName) {
*/
void PluginNeuralCapture::sampleRateChanged(double newSampleRate) {
fSampleRate = newSampleRate;
profil->set_samplerate(newSampleRate, profil); // init the DSP class
}

/**
Expand Down
2 changes: 2 additions & 0 deletions plugins/NeuralRecord/UINeuralCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ void UINeuralCapture::parameterChanged(uint32_t index, float value) {
fToolTip->setLabel("Error: Sample Rate mismatch, please use 48kHz");
else if ((int)value == 4)
fToolTip->setLabel(inputFile.c_str());
else if ((int)value == 5)
fToolTip->setLabel("Error: Output timing does not match, deleting result.wav");

break;
}
Expand Down
2 changes: 2 additions & 0 deletions plugins/NeuralRecord/profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ void Profil::disc_stream() {
close_stream(&recfile);
filesize = 0;
if (!time_match) {
errors = 5.0;
setOutputParameterValue(ERRORS, errors);
std::remove(outputfile.c_str());
}
}
Expand Down