mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Use override keyword
This commit is contained in:
parent
4fab55bf61
commit
c723f8aa22
@ -77,7 +77,7 @@ public:
|
||||
/// \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
|
||||
@ -88,7 +88,7 @@ public:
|
||||
/// \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
|
||||
@ -99,7 +99,7 @@ public:
|
||||
/// \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:
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
/// \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
|
||||
@ -89,7 +89,7 @@ public:
|
||||
/// \param count Number of samples to write
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual void write(const Int16* samples, Uint64 count);
|
||||
void write(const Int16* samples, Uint64 count) override;
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user