This commit is contained in:
rdanbrook 2018-02-05 12:04:51 -05:00
parent 047513f7d7
commit 6f57551fe4
3 changed files with 3 additions and 11 deletions

View file

@ -1618,8 +1618,6 @@ void OPLL_update(OPLL *opll, int16_t **buffer, int length)
instout = ((inst) * opll->masterVolume ) >> 1 ;
percout = ((perc) * opll->masterVolume ) >> 1 ;
if (instout != 0x00) { printf("instout nonzero\n"); }
if (percout != 0x00) { printf("percout nonzero\n"); }
if(instout>32767) instout = 32767 ;
if(instout<-32768) instout = -32768 ;
@ -1629,8 +1627,5 @@ void OPLL_update(OPLL *opll, int16_t **buffer, int length)
buffer[0][j] = (int16_t)instout ;
buffer[1][j] = (int16_t)percout ;
if (buffer[0][j] != 0x00) { printf("Buf0 nonzero\n"); }
if (buffer[1][j] != 0x00) { printf("Buf1 nonzero\n"); }
}
}

View file

@ -2150,8 +2150,6 @@ void YM2413UpdateOne(int which, int16_t **buffers, int length)
/* store to sound buffer */
bufMO[i] = mo;
bufRO[i] = ro;
if (bufMO[i] != 0x00) { printf("Buf0 nonzero\n"); }
if (bufRO[i] != 0x00) { printf("Buf1 nonzero\n"); }
advance(chip);
}

View file

@ -288,7 +288,7 @@ int main (int argc, char *argv[]) {
exit(1);
}
fprintf(stdout, "CRC : %X\n", cart.crc);
fprintf(stdout, "CRC : %08X\n", cart.crc);
fprintf(stdout, "SHA1: %s\n", cart.sha1);
// Set defaults
@ -327,12 +327,11 @@ int main (int argc, char *argv[]) {
snd.sample_rate = settings.audio_rate;
snd.mixer_callback = NULL;
// Initialize all systems and power on
system_init();
sms.territory = settings.misc_region;
sms.use_fm = settings.audio_fm;
// Initialize all systems and power on
system_init();
system_poweron();
// Initialize GLFW