1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix some compiler warnings

This commit is contained in:
Tom Poole 2023-08-18 15:14:51 +01:00
parent 0f307122d9
commit 82f1fd57a4
23 changed files with 88 additions and 101 deletions

View file

@ -412,6 +412,7 @@ public:
readerSource->setLooping (loopState.getValue());
init();
resized();
return true;
}
@ -461,7 +462,15 @@ public:
audioSourcePlayer.setSource (currentDemo.get());
initParameters();
auto& parameters = currentDemo->getParameters();
parametersComponent.reset();
if (! parameters.empty())
{
parametersComponent = std::make_unique<DemoParametersComponent> (parameters);
addAndMakeVisible (parametersComponent.get());
}
}
void play()
@ -485,21 +494,6 @@ public:
AudioThumbnailComponent& getThumbnailComponent() { return header.thumbnailComp; }
void initParameters()
{
auto& parameters = currentDemo->getParameters();
parametersComponent.reset();
if (parameters.size() > 0)
{
parametersComponent.reset (new DemoParametersComponent (parameters));
addAndMakeVisible (parametersComponent.get());
}
resized();
}
private:
//==============================================================================
class AudioPlayerHeader : public Component,