I've revisited FreeBASIC in the last day or two after inspiration from old Shockwave posts and seeing what it can achieve.
Anyhoo. I was in need of an AY/YM/SID library for my C/C++ projects and came across libbasszxtune and therefore created a library header for FreeBASIC inclusion.
I couldn't find an implementation already but if you have beaten me to it, sorry for hijacking!
I include an archive below... NOT been tested on anything other than Linux x86_64 (Debian bullseye).
Please let me know if it doesn't work if tested within MY test parameters.
You're on your own for Windows/Apple/Android or Linux 32bit, sorry!