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:
parent
11545e9b0e
commit
bc437e4079
@ -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(); }
|
||||
|
@ -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(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user