Fixed PSG sound which would sometimes not play (regression).
By the way, SPU.cpp should be cleaned up. Some parts are messy and it takes hours to get compiled.
This commit is contained in:
parent
c46ab0ca31
commit
869ecc2788
|
@ -510,10 +510,13 @@ void SPU_struct::KeyOn(int channel)
|
|||
default: break;
|
||||
}
|
||||
|
||||
if(thischan.double_totlength_shifted == 0)
|
||||
if(thischan.format != 3)
|
||||
{
|
||||
printf("INFO: Stopping channel %d due to zero length\n",channel);
|
||||
thischan.status = CHANSTAT_STOPPED;
|
||||
if(thischan.double_totlength_shifted == 0)
|
||||
{
|
||||
printf("INFO: Stopping channel %d due to zero length\n",channel);
|
||||
thischan.status = CHANSTAT_STOPPED;
|
||||
}
|
||||
}
|
||||
|
||||
thischan.double_totlength_shifted = (double)(thischan.totlength << format_shift[thischan.format]);
|
||||
|
|
Loading…
Reference in New Issue