The backend indeed was more involved. I only changed slightly your code. You should be able to see my changes by clicking my name.
Since i didn't get any response for a while, I went ahead and got the backend and front end working, for my mp3 files. The 2 projects are under my account. I don't think they are ready for prime time though.
Just to answer my own question...I managed to compile after using vcpkg to install mpg123 and integrated with Visual Studio. The resulted build also contains mpg123.dll that's needed to run. See my fork. Combined with my fork of QMP3Gain, we can finally work with Unicode filenames on Windows.
Please build this and release to the world! It's about time to support unicode filenames. I downloaded master and had a hard time compiling using VS2022 without errors. After copying the "mpglibDBL" folder from earlier version, I still get 47 errors. Obviously there is a dependency somewhere.
Can't handle non-English files.