Merge pull request #1852 from grant2258/polepos

polepos sample tweak
This commit is contained in:
arcadez2003 2024-08-27 21:46:02 +01:00 committed by GitHub
commit 8e504dda18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -637,7 +637,7 @@ logerror("%04x: custom 54XX write %02x\n",activecpu_get_pc(),data);
}
else
{
//int freq = (int)( ( 22050.0f / 10.0f ) * (float)(data & 0x0f) ); /* this is wrong, it's a volume and not a freq */
if ( data ==120) data =126;
int freq = (int) 22050 + (data - 112)* 750;
if (!sample_playing(0))