mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More template cleanups
This commit is contained in:
parent
01bab0c146
commit
43fa10b12f
14 changed files with 2035 additions and 22 deletions
|
|
@ -24,7 +24,7 @@ public:
|
|||
bool moreThanOneInstanceAllowed() override { return true; }
|
||||
|
||||
//==============================================================================
|
||||
void initialise (const String& commandLine) override
|
||||
void initialise (const String& /*commandLine*/) override
|
||||
{
|
||||
// This method is where you should put your application's initialisation code..
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ public:
|
|||
quit();
|
||||
}
|
||||
|
||||
void anotherInstanceStarted (const String& commandLine) override
|
||||
void anotherInstanceStarted (const String& /*commandLine*/) override
|
||||
{
|
||||
// When another instance of the app is launched while this one is running,
|
||||
// this method is invoked, and the commandLine parameter tells you what
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ public:
|
|||
phaseDelta (0.0f),
|
||||
frequency (5000.0f),
|
||||
amplitude (0.2f),
|
||||
sampleRate (0.0)
|
||||
sampleRate (0.0),
|
||||
expectedSamplesPerBlock (0)
|
||||
{
|
||||
setSize (500, 400);
|
||||
|
||||
|
|
@ -39,6 +40,7 @@ public:
|
|||
void prepareToPlay (int samplesPerBlockExpected, double newSampleRate) override
|
||||
{
|
||||
sampleRate = newSampleRate;
|
||||
expectedSamplesPerBlock = samplesPerBlockExpected;
|
||||
}
|
||||
|
||||
/* This method generates the actual audio samples.
|
||||
|
|
@ -140,6 +142,7 @@ private:
|
|||
float amplitude;
|
||||
|
||||
double sampleRate;
|
||||
int expectedSamplesPerBlock;
|
||||
Point<float> lastMousePosition;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue