Originariamente inviato da
SimoneFil
Marco, mansr ha ragione, quando si convertono i file dsd in pcm si aumenta solitamente il gain di 6db, perchè una conversione senza aumento del gain genera un file con un volume assurdamente basso. Mi viene da supporre che sia valida la stessa regola per l'upsampling.
Per quando riguarda gli aggiornamenti che ha fatto mansr, prima ho scritto una castronata.
Ti riscrivo il messaggio e scrivo anche nel dettaglio le righe modificate.
After autoreconf -i I had the following error "./configure: line 15062: syntax error near unexpected token `OPUS,'", I had previously installed opus with brew, after that I tried to compile it without using brew but I had the same error, I also tried to exclude with --disable-opus but without success (as I thought). So I decided to remove all the strings from the file configure.ac that were referring to opus:
codice:
# Check for Opus
AC_OPTIONAL_FORMAT(opus, OPUS,
[PKG_CHECK_MODULES(OPUS, [opusfile], [], using_opus=no)],
using_opus=no)
if test "$GCC" = "yes"; then
OPUS_CFLAGS="$OPUS_CFLAGS -Wno-long-long"
fi
and
codice:
echo "opus.......................$using_opus"
And the I did the same with the file optional-fmts.am:
codice:
if HAVE_OPUS
if STATIC_OPUS
libsox_la_SOURCES += opus.c
libsox_la_CFLAGS += @OPUS_CFLAGS@
if STATIC_LIBSOX_ONLY
sox_LDADD += @OPUS_LIBS@
else
libsox_la_LIBADD += @OPUS_LIBS@
endif
else
libsox_fmt_opus_la_SOURCES = opus.c
libsox_fmt_opus_la_CFLAGS = @OPUS_CFLAGS@
libsox_fmt_opus_la_LIBADD = libsox.la @OPUS_LIBS@
pkglib_LTLIBRARIES += libsox_fmt_opus.la
endif
endif
In this way I was able to exclude opus file format from the compiling of sox. I didn't want to lose a lot of time trying to look for a more elegant solution due to the very low use of this kind of audio codec. In this way I have compiled sox without any problem for macOS Sierra and It works well with pcm->dsd conversion too.
Riallego sox compilato in base alle ultime modifiche di mansr e edito il link precedente.
sox-osx.zip