Forum > Audio and Video

Last release of libsndfile has mp3 decoder now!

(1/4) > >>

Fred vS:
Hello.

With last release of libsndfile, you may decode mp3 too.

https://github.com/libsndfile/libsndfile/releases/tag/1.1.0

If you are using uos, with last release of libsndfile you may decode mp3, ogg, wav, flac, m4a, aiff, voc, caf, sd2, opus audio files.

domasz:
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).

Fred vS:

--- Quote from: domasz on March 29, 2022, 06:58:31 pm ---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).

--- End quote ---

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

winni:

--- Quote from: Fred vS on March 29, 2022, 08:12:57 pm ---
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

--- End quote ---

Hi Fre;D!

This is OS independent:

https://github.com/dpethes/mp3dp

Not tested

Winni

Fred vS:

--- Quote from: winni on March 29, 2022, 08:49:40 pm ---
--- Quote from: Fred vS on March 29, 2022, 08:12:57 pm ---
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

--- End quote ---

Hi Fre;D!

This is OS independent:

https://github.com/dpethes/mp3dp

Not tested

Winni

--- End quote ---

Hello Winni.

Thanks but https://forum.lazarus.freepascal.org/index.php/topic,58893.msg438941.html#msg438941

Fre;D

Navigation

[0] Message Index

[#] Next page

Go to full version