mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
More template cleanups
This commit is contained in:
parent
01bab0c146
commit
43fa10b12f
14 changed files with 2035 additions and 22 deletions
|
|
@ -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