pcm/SoxrResampler: implement method Reset()
This commit is contained in:
@@ -139,6 +139,14 @@ SoxrPcmResampler::Close()
|
||||
soxr_delete(soxr);
|
||||
}
|
||||
|
||||
void
|
||||
SoxrPcmResampler::Reset()
|
||||
{
|
||||
#if SOXR_THIS_VERSION >= SOXR_VERSION(0,1,2)
|
||||
soxr_clear(soxr);
|
||||
#endif
|
||||
}
|
||||
|
||||
ConstBuffer<void>
|
||||
SoxrPcmResampler::Resample(ConstBuffer<void> src)
|
||||
{
|
||||
|
@@ -41,6 +41,7 @@ class SoxrPcmResampler final : public PcmResampler {
|
||||
public:
|
||||
AudioFormat Open(AudioFormat &af, unsigned new_sample_rate) override;
|
||||
void Close() override;
|
||||
void Reset() override;
|
||||
ConstBuffer<void> Resample(ConstBuffer<void> src) override;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user