mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Increase size of DSB2 FIFO buffer; fixes Sega Rally 2 music occasionally not switching or fading out
This commit is contained in:
parent
b18f6d1b54
commit
94d8a1b22d
|
@ -981,7 +981,7 @@ void CDSB2::SendCommand(UINT8 data)
|
||||||
* over the course of a frame at once.
|
* over the course of a frame at once.
|
||||||
*/
|
*/
|
||||||
fifo[fifoIdxW++] = data;
|
fifo[fifoIdxW++] = data;
|
||||||
fifoIdxW &= 127;
|
fifoIdxW &= 255;
|
||||||
//printf("Write FIFO: %02X\n", data);
|
//printf("Write FIFO: %02X\n", data);
|
||||||
|
|
||||||
// Have we caught up to the read pointer?
|
// Have we caught up to the read pointer?
|
||||||
|
@ -1011,7 +1011,7 @@ void CDSB2::RunFrame(INT16 *audioL, INT16 *audioR)
|
||||||
{
|
{
|
||||||
cmdLatch = fifo[fifoIdxR]; // retrieve next command byte
|
cmdLatch = fifo[fifoIdxR]; // retrieve next command byte
|
||||||
fifoIdxR++;
|
fifoIdxR++;
|
||||||
fifoIdxR &= 127;
|
fifoIdxR &= 255;
|
||||||
|
|
||||||
M68KSetIRQ(1); // indicate pending command
|
M68KSetIRQ(1); // indicate pending command
|
||||||
//printf("68K INT fired\n");
|
//printf("68K INT fired\n");
|
||||||
|
|
|
@ -299,7 +299,7 @@ private:
|
||||||
UINT8 *ram; // 68K RAM
|
UINT8 *ram; // 68K RAM
|
||||||
|
|
||||||
// Command FIFO
|
// Command FIFO
|
||||||
UINT8 fifo[128];
|
UINT8 fifo[256];
|
||||||
int fifoIdxR; // read position
|
int fifoIdxR; // read position
|
||||||
int fifoIdxW; // write position
|
int fifoIdxW; // write position
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue