Add const

This commit is contained in:
xenakios 2018-10-15 19:21:11 +03:00
parent 0e0f28687e
commit 9ba940d55f
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -306,7 +306,7 @@ int MyBufferingAudioSource::useTimeSlice()
return readNextBufferChunk() ? 1 : 100;
}
double MyBufferingAudioSource::getPercentReady()
double MyBufferingAudioSource::getPercentReady() const
{
if (bufferValidEnd == bufferValidStart)
return 0.0;

View File

@ -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:
//==============================================================================