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

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

View File

@ -62,7 +62,7 @@ public:
bool isLooping() const override { return source->isLooping(); } bool isLooping() const override { return source->isLooping(); }
bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, const uint32 timeout); bool waitForNextAudioBlockReady (const AudioSourceChannelInfo& info, const uint32 timeout);
[[nodiscard]] double getPercentReady(); [[nodiscard]] double getPercentReady() const;
int getNumberOfChannels() { return numberOfChannels; } int getNumberOfChannels() { return numberOfChannels; }
private: private:
//============================================================================== //==============================================================================