upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -72,7 +72,7 @@ public:
|
||||
double maxSampleLengthSeconds);
|
||||
|
||||
/** Destructor. */
|
||||
~SamplerSound();
|
||||
~SamplerSound() override;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns the sample's name */
|
||||
@ -83,12 +83,14 @@ public:
|
||||
*/
|
||||
AudioBuffer<float>* getAudioData() const noexcept { return data.get(); }
|
||||
|
||||
//==============================================================================
|
||||
/** Changes the parameters of the ADSR envelope which will be applied to the sample. */
|
||||
void setEnvelopeParameters (ADSR::Parameters parametersToUse) { params = parametersToUse; }
|
||||
|
||||
//==============================================================================
|
||||
bool appliesToNote (int midiNoteNumber) override;
|
||||
bool appliesToChannel (int midiChannel) override;
|
||||
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
friend class SamplerVoice;
|
||||
@ -97,8 +99,9 @@ private:
|
||||
std::unique_ptr<AudioBuffer<float>> data;
|
||||
double sourceSampleRate;
|
||||
BigInteger midiNotes;
|
||||
int length = 0, attackSamples = 0, releaseSamples = 0;
|
||||
int midiRootNote = 0;
|
||||
int length = 0, midiRootNote = 0;
|
||||
|
||||
ADSR::Parameters params;
|
||||
|
||||
JUCE_LEAK_DETECTOR (SamplerSound)
|
||||
};
|
||||
@ -123,7 +126,7 @@ public:
|
||||
SamplerVoice();
|
||||
|
||||
/** Destructor. */
|
||||
~SamplerVoice();
|
||||
~SamplerVoice() override;
|
||||
|
||||
//==============================================================================
|
||||
bool canPlaySound (SynthesiserSound*) override;
|
||||
@ -136,13 +139,13 @@ public:
|
||||
|
||||
void renderNextBlock (AudioBuffer<float>&, int startSample, int numSamples) override;
|
||||
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
double pitchRatio = 0;
|
||||
double sourceSamplePosition = 0;
|
||||
float lgain = 0, rgain = 0, attackReleaseLevel = 0, attackDelta = 0, releaseDelta = 0;
|
||||
bool isInAttack = false, isInRelease = false;
|
||||
float lgain = 0, rgain = 0;
|
||||
|
||||
ADSR adsr;
|
||||
|
||||
JUCE_LEAK_DETECTOR (SamplerVoice)
|
||||
};
|
||||
|
Reference in New Issue
Block a user