mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-27 01:40:23 +00:00
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
ad9eda2e3f
commit
2638002fd3
@ -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…
Reference in New Issue
Block a user