Skip to content

Commit

Permalink
Handle RF5C68 and RF5C164 commands identically (#337)
Browse files Browse the repository at this point in the history
They are basically the same chip
  • Loading branch information
viciious authored Jun 20, 2024
1 parent ee31806 commit f757fb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/xgmtool/inc/vgmcom.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#define VGM_LOOP_END 0x31

#define VGM_WRITE_RF5C68 0xB0
#define VGM_WRITE_RF5C164 0xB1

typedef struct
{
Expand Down
2 changes: 1 addition & 1 deletion tools/xgmtool/src/vgmcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ bool VGMCommand_isSame(VGMCommand* source, VGMCommand* com)

bool VGMCommand_isRF5C68Control(VGMCommand* source)
{
return source->command == VGM_WRITE_RF5C68;
return source->command == VGM_WRITE_RF5C68 || source->command == VGM_WRITE_RF5C164;
}

bool VGMCommand_contains(LList* commands, VGMCommand* command)
Expand Down
2 changes: 1 addition & 1 deletion tools/xgmtool/src/xgmtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int main(int argc, char *argv[ ])
printf("-di\tdisable PCM sample auto ignore (it can help when PCM are not properly extracted).\n");
printf("-dr\tdisable PCM sample rate auto fix (it can help when PCM are not properly extracted).\n");
printf("-dd\tdisable delayed KEY OFF event when we have KEY ON/OFF in a single frame (it can fix incorrect instrument sound).\n");
printf("-r\tkeep RF5C68 register write commands.\n");
printf("-r\tkeep RF5C68 and RF5C164 register write commands.\n");

exit(1);
}
Expand Down

0 comments on commit f757fb7

Please sign in to comment.