forgot to ask, but can you send the updated version with the printf's of
the "play.tos.zip" file you sent earlier ?
also, can you confirm you're using the same sox command as eero to
convert a wav/mp3 to raw falcon sound ?
or better, could you post a 20-30 sec raw file that sound OK on falcon,
just to be sure the sound quality problem eero reported is in Hatari and
not in some conversion steps ?
Sure, no problem:
Put in the same folder and run. I sincerely apologise for the choice of the track, it was the first one I found on my disk. ;-)
Btw, as expected, this solution was utterly stupid. In the meantime I have coded a routine which doesn't depend on the frame address comparison and in general is 3x simpler. So this is now purely for educational purposes.