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:
parent
055b4f9c26
commit
6efcfc2e8a
19 changed files with 178 additions and 132 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef _DISPATCH_H
|
||||
#define _DISPATCH_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define ONE_SEMITONE 2200
|
||||
|
||||
enum DivDispatchCmds {
|
||||
|
|
@ -83,7 +85,7 @@ class DivDispatch {
|
|||
* the engine shall resample to the output rate.
|
||||
*/
|
||||
int rate;
|
||||
virtual void acquire(int& l, int& r);
|
||||
virtual void acquire(short** buf, size_t start, size_t len);
|
||||
virtual int dispatch(DivCommand c);
|
||||
virtual void tick();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue