diff --git a/gambatte_qt/src/framework/audioengines/alsaengine.h b/gambatte_qt/src/framework/audioengines/alsaengine.h index 2b37780..70b984d 100644 --- a/gambatte_qt/src/framework/audioengines/alsaengine.h +++ b/gambatte_qt/src/framework/audioengines/alsaengine.h @@ -41,7 +41,7 @@ public: int write(void *buffer, unsigned samples, BufferState &preBufState_out, RateEst::Result &rate_out); const RateEst::Result rateEstimate() const { return est.result(); } const BufferState bufferState() const; - void pause() { prevfur = 0; est.init(est.result().est); } + void pause() { prevfur = 0; est.reset(); } QWidget* settingsWidget() { return conf.settingsWidget(); } void acceptSettings() { conf.acceptSettings(); } void rejectSettings() { conf.rejectSettings(); } diff --git a/gambatte_qt/src/framework/audioengines/ossengine.h b/gambatte_qt/src/framework/audioengines/ossengine.h index 10c11cb..f8af5e8 100644 --- a/gambatte_qt/src/framework/audioengines/ossengine.h +++ b/gambatte_qt/src/framework/audioengines/ossengine.h @@ -40,7 +40,7 @@ public: int write(void *buffer, unsigned samples, BufferState &preBufState_out, RateEst::Result &rate_out); const RateEst::Result rateEstimate() const { return est.result(); } const BufferState bufferState() const; - void pause() { prevfur = 0; est.init(est.result().est); } + void pause() { prevfur = 0; est.reset(); } QWidget* settingsWidget() { return conf.settingsWidget(); } void acceptSettings() { conf.acceptSettings(); } void rejectSettings() { conf.rejectSettings(); }