Added sound play range parameters. Initial work on audio input capture.

This commit is contained in:
xenakios
2017-11-13 21:21:30 +02:00
parent d9e9107ed4
commit c32e64a570
5 changed files with 57 additions and 5 deletions

View File

@ -23,7 +23,10 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (Pa
m_parcomps.back()->setBounds(1, i * 25, 598, 24);
addAndMakeVisible(m_parcomps.back().get());
}
setSize (600, pars.size()*25);
addAndMakeVisible(&m_rec_enable);
m_rec_enable.setButtonText("Capture");
m_rec_enable.addListener(this);
setSize (600, pars.size()*25+30);
startTimer(1, 100);
}
@ -31,6 +34,14 @@ PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()
{
}
void PaulstretchpluginAudioProcessorEditor::buttonClicked(Button * but)
{
if (but == &m_rec_enable)
{
processor.setRecordingEnabled(but->getToggleState());
}
}
//==============================================================================
void PaulstretchpluginAudioProcessorEditor::paint (Graphics& g)
{
@ -39,8 +50,8 @@ void PaulstretchpluginAudioProcessorEditor::paint (Graphics& g)
void PaulstretchpluginAudioProcessorEditor::resized()
{
// This is generally where you'll want to lay out the positions of any
// subcomponents in your editor..
m_rec_enable.setBounds(1, getHeight() - 25, 10, 24);
m_rec_enable.changeWidthToFitText();
}
void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)