more optimization

as of now non-stereo sound chips are only processed once
This commit is contained in:
tildearrow 2021-12-06 16:51:18 -05:00
parent 6efcfc2e8a
commit d6fb6b0bb3
17 changed files with 66 additions and 41 deletions

View file

@ -85,10 +85,12 @@ class DivDispatch {
* the engine shall resample to the output rate.
*/
int rate;
virtual void acquire(short** buf, size_t start, size_t len);
virtual void acquire(short* bufL, short* bufR, size_t start, size_t len);
virtual int dispatch(DivCommand c);
virtual void tick();
virtual bool isStereo();
/**
* initialize this DivDispatch.
* @param parent the parent DivEngine.