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

@ -2,9 +2,8 @@
#include "../engine.h"
#include <math.h>
void DivPlatformSMS::acquire(short** buf, size_t start, size_t len) {
sn->sound_stream_update(buf[0]+start,len);
memcpy(buf[1]+start,buf[0]+start,sizeof(short)*len);
void DivPlatformSMS::acquire(short* bufL, short* bufR, size_t start, size_t len) {
sn->sound_stream_update(bufL+start,len);
}
int DivPlatformSMS::acquireOne() {