Added optional ability to dump (S)VGA Video RAM on demand (not enabled by default);

Removed the unfinished (and largely unused) Disney Sound Source emulation.
This commit is contained in:
OBattler
2017-05-07 04:56:34 +02:00
parent 2dc5b2e48a
commit 885e2f0444
12 changed files with 169 additions and 108 deletions

View File

@@ -270,7 +270,6 @@ void sound_poll(void *priv)
if (sound_pos_global == SOUNDBUFLEN)
{
int c;
/* int16_t buf16[SOUNDBUFLEN * 2 ];*/
memset(outbuffer, 0, SOUNDBUFLEN * 2 * sizeof(int32_t));
@@ -278,19 +277,6 @@ void sound_poll(void *priv)
sound_handlers[c].get_buffer(outbuffer, SOUNDBUFLEN, sound_handlers[c].priv);
/* for (c=0;c<SOUNDBUFLEN*2;c++)
{
if (outbuffer[c] < -32768)
buf16[c] = -32768;
else if (outbuffer[c] > 32767)
buf16[c] = 32767;
else
buf16[c] = outbuffer[c];
}
if (!soundf) soundf=fopen("sound.pcm","wb");
fwrite(buf16,(SOUNDBUFLEN)*2*2,1,soundf);*/
for (c = 0; c < SOUNDBUFLEN * 2; c++)
{
outbuffer_ex[c] = ((float) outbuffer[c]) / 32768.0;