mirror of https://github.com/PCSX2/pcsx2.git
3rdparty/SoundTouch: Warning fixes
This commit is contained in:
parent
2ae44ca493
commit
02b64f4027
|
@ -1,5 +1,4 @@
|
|||
add_library(pcsx2-soundtouch
|
||||
source/SoundStretch/WavFile.cpp
|
||||
source/SoundTouch/AAFilter.cpp
|
||||
source/SoundTouch/BPMDetect.cpp
|
||||
source/SoundTouch/cpu_detect_x86.cpp
|
||||
|
@ -19,7 +18,6 @@ add_library(pcsx2-soundtouch
|
|||
soundtouch/FIFOSamplePipe.h
|
||||
soundtouch/SoundTouch.h
|
||||
soundtouch/STTypes.h
|
||||
source/SoundStretch/WavFile.h
|
||||
source/SoundTouch/AAFilter.h
|
||||
source/SoundTouch/cpu_detect.h
|
||||
source/SoundTouch/FIRFilter.h
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
namespace soundtouch
|
||||
{
|
||||
|
||||
class InterpolateCubic : public TransposerBase
|
||||
class InterpolateCubic final : public TransposerBase
|
||||
{
|
||||
protected:
|
||||
virtual int transposeMono(SAMPLETYPE *dest,
|
||||
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
virtual void resetRegisters() override;
|
||||
|
||||
int getLatency() const
|
||||
int getLatency() const override
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace soundtouch
|
|||
{
|
||||
|
||||
/// Linear transposer class that uses integer arithmetic
|
||||
class InterpolateLinearInteger : public TransposerBase
|
||||
class InterpolateLinearInteger final : public TransposerBase
|
||||
{
|
||||
protected:
|
||||
int iFract;
|
||||
|
@ -69,23 +69,23 @@ public:
|
|||
|
||||
|
||||
/// Linear transposer class that uses floating point arithmetic
|
||||
class InterpolateLinearFloat : public TransposerBase
|
||||
class InterpolateLinearFloat final : public TransposerBase
|
||||
{
|
||||
protected:
|
||||
double fract;
|
||||
|
||||
virtual int transposeMono(SAMPLETYPE *dest,
|
||||
const SAMPLETYPE *src,
|
||||
int &srcSamples);
|
||||
int &srcSamples) override;
|
||||
virtual int transposeStereo(SAMPLETYPE *dest,
|
||||
const SAMPLETYPE *src,
|
||||
int &srcSamples);
|
||||
virtual int transposeMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, int &srcSamples);
|
||||
int &srcSamples) override;
|
||||
virtual int transposeMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, int &srcSamples) override;
|
||||
|
||||
public:
|
||||
InterpolateLinearFloat();
|
||||
|
||||
virtual void resetRegisters();
|
||||
void resetRegisters() override;
|
||||
|
||||
int getLatency() const override
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
namespace soundtouch
|
||||
{
|
||||
|
||||
class InterpolateShannon : public TransposerBase
|
||||
class InterpolateShannon final : public TransposerBase
|
||||
{
|
||||
protected:
|
||||
int transposeMono(SAMPLETYPE *dest,
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
|
||||
void resetRegisters() override;
|
||||
|
||||
int getLatency() const
|
||||
int getLatency() const override
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue