85 Appendix - MP3 Support
86 ----------------------
87
88 SoX contains support for reading and writing MP3 files but does not ship
89 with the DLL's that perform decoding and encoding of MP3 data because
90 of patent restrictions. For further details, refer to:
91
92
http://en.wikipedia.org/wiki/MP3#Licens ... ent_issues
93
94 MP3 support can be enabled by placing Lame encoding DLL and/or
95 MAD decoding DLL into the same directory as SOX.EXE. These
96 can be compiled yourself, they may turn up on searches of the internet
97 or may be included with other MP3 applications already installed
98 on your system. For encoding/writing, try searching for lame-enc.dll,
99 libmp3lame-0.dll, libmp3lame.dll, or cygmp3lame-0.dll. For
100 decoding/reading, try searching for libmad-0.dll, libmad.dll or cygmad-0.dll.
101
102 Instructions are included here for using MSYS to create the DLL's.
103 It is assumed you already have MSYS installed on your system
104 with a working gcc compiler. The commands are ran from MSYS
105 bash shell.
106
107 Obtain the latest Lame and MAD source code from approprate locations.
108
109 Lame MP3 encoder
http://lame.sourceforge.net
110 MAD MP3 decoder
http://www.underbit.com/products/mad
111
112 cd lame-398-2
113 ./configure --disabled-static --enable-shared
114 make
115 cp libmp3lame/.libs/libmp3lame-0.dll /path/to/sox
116
117 MAD libraries up to 0.15.1b have a bug in configure that will not allow
118 building DLL under mingw. This can be resolved by adding LDFLAGS
119 to configure and editing the generated Makefile to remove an invalid
120 option.
121
122 cd libmad-0.15.1b
123 ./configure --enable-shared --disable-static LDFLAGS="-no-undefined"
124 [edit Makefile, search for "-fforce-mem" and delete it.]
125 make
126 cp libmad-0.dll /path/to/sox/