twinaphex/genesis-next — comment on commit bce300cfdc1d18154544905d2f8fd934de1a55f4
File:  line 0
By ekeeke:

unfortunately, that won't lead you to anything, you can't revert back to code from sample data and sample data are ovbiously different from the sound you hear, no need to compare them

I don't know how the logs you uploaded were done but the values reported do not make any sense
If you are confident in those reported log then read audio_init & sound_init code, add logging stuff before and after each function calls and debug, mclk should be close to 53mhz ,and psg_, fm_cycles_ratio higher than 2048, anything like what you are getting (they are even negative values for available number of samples lol) is never going to produce acceptable audio