fix windows build...

This commit is contained in:
tildearrow 2021-12-16 15:51:19 -05:00
parent ce32f921bd
commit 2baed0cff0
8 changed files with 149 additions and 6 deletions

View file

@ -1156,7 +1156,6 @@ void DivEngine::renderSamples() {
DivSample* s=song.sample[i];
if ((memPos&0xf00000)!=((memPos+s->adpcmRendLength)&0xf00000)) {
memPos=(memPos+0xfffff)&0xf00000;
printf("aligning to %lx.\n",memPos);
}
memcpy(adpcmMem+memPos,s->adpcmRendData,s->adpcmRendLength);
s->rendOff=memPos;
@ -1340,7 +1339,7 @@ void DivEngine::quitDispatch() {
}
bool DivEngine::init(String outName) {
SNDFILE* outFile;
SNDFILE* outFile=NULL;
SF_INFO outInfo;
if (outName!="") {
// init out file

View file

@ -40,6 +40,7 @@ struct DivChannelState {
volSpeed(0),
cut(-1),
rowDelay(0),
volMax(0),
delayOrder(0),
delayRow(0),
vibratoDepth(0),