Commit 663f4315 authored by natalie's avatar natalie 💜
Browse files

Mask off 3438 bit when reading OPN2 clock with OPNA hardware

parent b6da604c
...@@ -603,6 +603,7 @@ static bool Player_StartTrack(char *FilePath) { ...@@ -603,6 +603,7 @@ static bool Player_StartTrack(char *FilePath) {
uint32_t opn2 = 0; uint32_t opn2 = 0;
fseek(Player_VgmFile, 0x2c, SEEK_SET); fseek(Player_VgmFile, 0x2c, SEEK_SET);
fread(&opn2, 4, 1, Player_VgmFile); fread(&opn2, 4, 1, Player_VgmFile);
opn2 &= ~(1<<31); //3438 bit
if (Player_Info.Version >= 151) { if (Player_Info.Version >= 151) {
fseek(Player_VgmFile, 0x44, SEEK_SET); fseek(Player_VgmFile, 0x44, SEEK_SET);
fread(&opn,4,1,Player_VgmFile); fread(&opn,4,1,Player_VgmFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment