prepare for possible major optimization

by just forwarding an output buffer to the dispatch and begin/length,
the number of calls may be reduced which improves performance.
This commit is contained in:
tildearrow 2021-12-06 05:21:42 -05:00
parent 055b4f9c26
commit 6efcfc2e8a
19 changed files with 178 additions and 132 deletions

View file

@ -36,7 +36,7 @@ class DivPlatformNES: public DivDispatch {
void updateWave();
public:
void acquire(int& l, int& r);
void acquire(short** buf, size_t start, size_t len);
int dispatch(DivCommand c);
void tick();
int init(DivEngine* parent, int channels, int sugRate);