Commit 5d10f3a9 authored by natalie's avatar natalie 💜
Browse files

Also mask off bit 31 in the SN76489 clock to prevent incorrect frequency on...

Also mask off bit 31 in the SN76489 clock to prevent incorrect frequency on T6W28 tunes (even if they are not really supported...)
parent 663f4315
......@@ -546,6 +546,10 @@ static bool Player_StartTrack(char *FilePath) {
ESP_LOGW(TAG, "Only one PSG supported! Writes to the second chip will be dropped");
PsgClock &= ~(1<<30);
}
if (PsgClock & (1<<31)) {
ESP_LOGW(TAG, "VGM specifies T6W28!");
PsgClock &= ~(1<<31);
}
ESP_LOGI(TAG, "Clocks from vgm: psg %d, fm %d", PsgClock, FmClock);
if (!PsgClock && !FmClock) {
......
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