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
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
#define FREQ_BASE 277.0f
|
||||
|
||||
void DivPlatformC64::acquire(int& l, int& r) {
|
||||
sid.clock();
|
||||
l=sid.output();
|
||||
r=l;
|
||||
void DivPlatformC64::acquire(short** buf, size_t start, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
sid.clock();
|
||||
buf[0][i]=sid.output();
|
||||
buf[1][i]=buf[0][i];
|
||||
}
|
||||
}
|
||||
|
||||
void DivPlatformC64::tick() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue