You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.8 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -15,7 +15,7 @@ OPT_IR = -DIR
  4. SOURCES = \
  5. main.c slimproto.c buffer.c stream.c utils.c \
  6. output.c output_alsa.c output_pa.c output_stdout.c output_pack.c decode.c \
  7. - flac.c pcm.c mad.c vorbis.c faad.c mpg.c
  8. + flac.c pcm.c vorbis.c faad.c mpg.c
  9. SOURCES_DSD = dsd.c dop.c dsd2pcm/dsd2pcm.c
  10. SOURCES_FF = ffmpeg.c
  11. @@ -25,7 +25,7 @@ SOURCES_IR = ir.c
  12. LINK_LINUX = -ldl
  13. -LINKALL = -lFLAC -lmad -lvorbisfile -lfaad -lmpg123
  14. +LINKALL = -lFLAC -lvorbisfile -lfaad -lmpg123
  15. LINKALL_FF = -lavcodec -lavformat -lavutil
  16. LINKALL_RESAMPLE = -lsoxr
  17. LINKALL_IR = -llirc_client
  18. --- a/decode.c
  19. +++ b/decode.c
  20. @@ -145,8 +145,8 @@ void decode_init(log_level level, const
  21. if (!strstr(exclude_codecs, "pcm") && (!include_codecs || strstr(include_codecs, "pcm"))) codecs[i++] = register_pcm();
  22. // try mad then mpg for mp3 unless command line option passed
  23. - if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mad")) &&
  24. - (!include_codecs || strstr(include_codecs, "mp3") || strstr(include_codecs, "mad"))) codecs[i] = register_mad();
  25. +// if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mad")) &&
  26. +// (!include_codecs || strstr(include_codecs, "mp3") || strstr(include_codecs, "mad"))) codecs[i] = register_mad();
  27. if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mpg")) && !codecs[i] &&
  28. (!include_codecs || strstr(include_codecs, "mp3") || strstr(include_codecs, "mpg"))) codecs[i] = register_mpg();
  29. --- a/main.c
  30. +++ b/main.c
  31. @@ -39,7 +39,8 @@
  32. #else
  33. #define CODECS_DSD ""
  34. #endif
  35. -#define CODECS_MP3 " (mad,mpg for specific mp3 codec)"
  36. +//#define CODECS_MP3 " (mad,mpg for specific mp3 codec)"
  37. +#define CODECS_MP3 " (mpg123 for specific mp3 codec)"
  38. #define CODECS CODECS_BASE CODECS_FF CODECS_DSD CODECS_MP3
  39. --- a/squeezelite.h
  40. +++ b/squeezelite.h
  41. @@ -154,7 +154,7 @@
  42. #if LINUX
  43. #define LIBFLAC "libFLAC.so.8"
  44. -#define LIBMAD "libmad.so.0"
  45. +//#define LIBMAD "libmad.so.0"
  46. #define LIBMPG "libmpg123.so.0"
  47. #define LIBVORBIS "libvorbisfile.so.3"
  48. #define LIBTREMOR "libvorbisidec.so.1"
  49. @@ -168,7 +168,7 @@
  50. #if OSX
  51. #define LIBFLAC "libFLAC.8.dylib"
  52. -#define LIBMAD "libmad.0.dylib"
  53. +//#define LIBMAD "libmad.0.dylib"
  54. #define LIBMPG "libmpg123.0.dylib"
  55. #define LIBVORBIS "libvorbisfile.3.dylib"
  56. #define LIBTREMOR "libvorbisidec.1.dylib"
  57. @@ -181,7 +181,7 @@
  58. #if WIN
  59. #define LIBFLAC "libFLAC.dll"
  60. -#define LIBMAD "libmad-0.dll"
  61. +//#define LIBMAD "libmad-0.dll"
  62. #define LIBMPG "libmpg123-0.dll"
  63. #define LIBVORBIS "libvorbisfile.dll"
  64. #define LIBTREMOR "libvorbisidec.dll"
  65. @@ -194,7 +194,7 @@
  66. #if FREEBSD
  67. #define LIBFLAC "libFLAC.so.11"
  68. -#define LIBMAD "libmad.so.2"
  69. +//#define LIBMAD "libmad.so.2"
  70. #define LIBMPG "libmpg123.so.0"
  71. #define LIBVORBIS "libvorbisfile.so.6"
  72. #define LIBTREMOR "libvorbisidec.so.1"