Browse Source

Draw prebufferred amount in main GUI component. Does not refresh properly in stand alone app build and probably not in all plugin hosts either.

tags/v100_p5
xenakios 7 years ago
parent
commit
6f89b544ab
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      Source/PluginEditor.cpp

+ 7
- 2
Source/PluginEditor.cpp View File

@@ -84,6 +84,12 @@ PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()
void PaulstretchpluginAudioProcessorEditor::paint (Graphics& g)
{
g.fillAll(Colours::darkgrey);
double amt = processor.getPreBufferingPercent();
g.setColour(Colours::green);
int w = amt * 100.0;
g.fillRect(m_settings_button.getRight() + 1, 1, w, 24);
g.setColour(Colours::white);
g.drawRect(m_settings_button.getRight() + 1, 1, 100, 24);
}

void PaulstretchpluginAudioProcessorEditor::resized()
@@ -191,8 +197,7 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
m_wavecomponent.setRecordingPosition(processor.getRecordingPositionPercent());
} else
m_wavecomponent.setRecordingPosition(-1.0);
String infotext = String(processor.getPreBufferingPercent()*100.0, 1) + "% buffered "
+ String(processor.getStretchSource()->m_param_change_count)+" param changes "+m_last_err+" FFT size "+
String infotext = String(processor.getStretchSource()->m_param_change_count)+" param changes "+m_last_err+" FFT size "+
String(processor.getStretchSource()->getFFTSize());
if (processor.m_abnormal_output_samples > 0)
infotext += " " + String(processor.m_abnormal_output_samples) + " invalid sample values";


Loading…
Cancel
Save