Commit 09147ff5 by andrewlewis Committed by Oliver Woodman

Add missing consts for consistency

These getters do not modify the instance.

PiperOrigin-RevId: 258345084
parent 7760eca2
...@@ -48,9 +48,11 @@ class FLACParser { ...@@ -48,9 +48,11 @@ class FLACParser {
return mStreamInfo; return mStreamInfo;
} }
bool isVorbisCommentsValid() { return mVorbisCommentsValid; } bool isVorbisCommentsValid() const { return mVorbisCommentsValid; }
std::vector<std::string> getVorbisComments() { return mVorbisComments; } const std::vector<std::string>& getVorbisComments() const {
return mVorbisComments;
}
int64_t getLastFrameTimestamp() const { int64_t getLastFrameTimestamp() const {
return (1000000LL * mWriteHeader.number.sample_number) / getSampleRate(); return (1000000LL * mWriteHeader.number.sample_number) / getSampleRate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment