Add const
This commit is contained in:
parent
0e0f28687e
commit
9ba940d55f
@ -630,7 +630,7 @@ void PaulstretchpluginAudioProcessor::processBlock (AudioBuffer<double>& buffer,
|
||||
|
||||
void PaulstretchpluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
|
||||
{
|
||||
ScopedLock locker(m_cs);
|
||||
ScopedLock locker(m_cs);
|
||||
const int totalNumInputChannels = getTotalNumInputChannels();
|
||||
const int totalNumOutputChannels = getTotalNumOutputChannels();
|
||||
AudioPlayHead* phead = getPlayHead();
|
||||
|
@ -306,7 +306,7 @@ int MyBufferingAudioSource::useTimeSlice()
|
||||
return readNextBufferChunk() ? 1 : 100;
|
||||
}
|
||||
|
||||
double MyBufferingAudioSource::getPercentReady()
|
||||
double MyBufferingAudioSource::getPercentReady() const
|
||||
{
|
||||
if (bufferValidEnd == bufferValidStart)
|
||||
return 0.0;
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
bool isLooping() const override { return source->isLooping(); }
|
||||
|
||||
bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, const uint32 timeout);
|
||||
[[nodiscard]] double getPercentReady();
|
||||
[[nodiscard]] double getPercentReady() const;
|
||||
int getNumberOfChannels() { return numberOfChannels; }
|
||||
private:
|
||||
//==============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user