SCC: massive optimization

This commit is contained in:
tildearrow 2023-01-29 17:17:15 -05:00
parent 19e3019e4f
commit a08c343f6d
4 changed files with 16 additions and 14 deletions

View file

@ -82,9 +82,7 @@ const char** DivPlatformSCC::getRegisterSheet() {
void DivPlatformSCC::acquire(short** buf, size_t len) {
for (size_t h=0; h<len; h++) {
for (int i=0; i<16; i++) {
scc->tick();
}
scc->tick(16);
short out=(short)scc->out()<<5;
buf[0][h]=out;