Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19c8e3ae authored by Andy Hung's avatar Andy Hung
Browse files

AudioResampler: Clear input buffer on reset

Test: use debug tee - play audio, pause, seek to start, play.
Bug: 73132891
Change-Id: I9f4237802d203cabd5d1372828eba7c7320f02d7
parent 51eb2817
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,6 +55,11 @@ public:
    virtual size_t resample(int32_t* out, size_t outFrameCount,
            AudioBufferProvider* provider);

    void reset() override {
        AudioResampler::reset();
        mInBuffer.reset();
    }

    // Make available key design criteria for testing
    int getHalfLength() const {
        return mConstants.mHalfNumCoefs;