Use RateEst.reset rather than re-initing on pause.

git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@184 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2008-10-19 20:58:05 +00:00
parent ad9eda2e3f
commit 2638002fd3
2 changed files with 2 additions and 2 deletions

View File

@ -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(); }

View File

@ -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(); }