It is in C++ so for Lazarus we need a DLL. Not great considering Lazarus is multi platform and the 3 popular platforms (Windows, MacOS, Linux) require at least 6 different compiled binaries (Win32, Win64, Linux64, Linux64 for Arm, MacOS 64 Intel, MacOS M1).
Huh, there is also FreeBSD OS and arrch64 CPU.
Yes, indeed, each platform and each cpu needs his compiled binary.
And there are good news, nearly all Linux/Free BSD distro have
libsndfile installed by default.
( in uos package all those binaries are included and can dynamically be loaded ).
But I agree with you, Pascal open source with LGPL license (or equivalent) to decode (perfectly) mp3, opus, flac, wav, ogg, m4a or cda is a big wish of each Pascal programmer.
There are here and there some projects, sadly I never found something stable that could help me.
And there is also the problem of license.
On the other hand we have C libraries working perfectly that can be used by fpc, like libsndfile, libmpg123, portaudio, with LGPL license.
All that said, if you find something stable in Pascal to decode mp3, opus, flac, wav, ogg, m4, I am very interested by this code...
Fre;D