Use override keyword

This commit is contained in:
Chris Thrasher 2022-01-18 10:04:56 -07:00 committed by Lukas Dürrenberger
parent 4fab55bf61
commit c723f8aa22
2 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(InputStream& stream, Info& info); bool open(InputStream& stream, Info& info) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current read position to the given sample offset /// \brief Change the current read position to the given sample offset
@ -88,7 +88,7 @@ public:
/// \param sampleOffset Index of the sample to jump to, relative to the beginning /// \param sampleOffset Index of the sample to jump to, relative to the beginning
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void seek(Uint64 sampleOffset); void seek(Uint64 sampleOffset) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Read audio samples from the open file /// \brief Read audio samples from the open file
@ -99,7 +99,7 @@ public:
/// \return Number of samples actually read (may be less than \a maxCount) /// \return Number of samples actually read (may be less than \a maxCount)
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Uint64 read(Int16* samples, Uint64 maxCount); Uint64 read(Int16* samples, Uint64 maxCount) override;
private: private:

View File

@ -80,7 +80,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount); bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Write audio samples to the open file /// \brief Write audio samples to the open file
@ -89,7 +89,7 @@ public:
/// \param count Number of samples to write /// \param count Number of samples to write
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void write(const Int16* samples, Uint64 count); void write(const Int16* samples, Uint64 count) override;
private: private: