Add const
This commit is contained in:
parent
0e0f28687e
commit
9ba940d55f
@ -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