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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user