-
I fetched the sox source long ago but today I've decided to rebuild the project from scratch:
Before this sox was able to read mp3 files without any problems. @gavv is it a new problem? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@gavv, it is a regression after 2c0591a. Without Could you clarify what was the problem with MacOS build? |
Beta Was this translation helpful? Give feedback.
-
SoX does not handle mp3 files by itself, as well as many other formats and audio systems. Instead, it relies on an external library, I think it is mp3lame in this case. SoX supports a lot of input and output formats. When it is built, every format may be either disabled, enabled, or enabled as a dynamically loaded plugin. When you use libsox from your distribution, it is usually configured to handle many formats as dynamic plugins and they can be installed via individual packages (e.g. libsox-fmt-mp3 in Debian). When you ask Roc to build libsox for you, Roc builds SoX as a static library with minimal dependencies, so that libroc will not depend on additional libraries for mp3, flac, ogg, etc. In general, This approach allows us to keep the build script short and not reinvent a package manager. It also allows to produce a rather portable executable which is very handful when cross compiling, building for an old or exotic environment, in other words when you have some difficulties with building the dependencies. In normal situations, however, you should prefer using system libraries instead of --build-3rdparty. |
Beta Was this translation helpful? Give feedback.
-
I have no idea why disabling opus also disables mp3 files support. I also have no idea why it was enabled before. We probably want to disable it explicitly if it requires an external library. I think you should check the ./configure output in I have disabled opus support because 1) we don't need it anyway 2) SoX was complaining about some opus headers on MacOS. |
Beta Was this translation helpful? Give feedback.
-
Related: #100. |
Beta Was this translation helpful? Give feedback.
-
Well, I used the system SoX as it was advised. The problem has gone. Thanks for |
Beta Was this translation helpful? Give feedback.
Well, I used the system SoX as it was advised. The problem has gone. Thanks for
the clarification.