|
1 | 1 | /* MP3 support for SoX |
2 | 2 | * |
3 | | - * Uses libmad for MP3 decoding |
| 3 | + * Uses libmad or libmpg123 for MP3 decoding |
4 | 4 | * libmp3lame for MP3 encoding |
5 | 5 | * and libtwolame for MP2 encoding |
6 | 6 | * |
@@ -326,7 +326,7 @@ typedef struct mp3_priv_t { |
326 | 326 | #endif |
327 | 327 | } priv_t; |
328 | 328 |
|
329 | | -#if defined(HAVE_MAD_H) || defined(HAVE_MPG123_H) |
| 329 | +#if defined(HAVE_MAD_H) |
330 | 330 |
|
331 | 331 | /* This function merges the functions tagtype() and id3_tag_query() |
332 | 332 | from MAD's libid3tag, so we don't have to link to it |
@@ -357,7 +357,7 @@ static int tagtype(const unsigned char *data, size_t length) |
357 | 357 | return 0; |
358 | 358 | } |
359 | 359 |
|
360 | | -#endif /*HAVE_MAD_H || HAVE_MPG123_H */ |
| 360 | +#endif /*HAVE_MAD_H */ |
361 | 361 |
|
362 | 362 | #include "mp3-util.h" |
363 | 363 |
|
@@ -825,7 +825,7 @@ static int startread(sox_format_t * ft) |
825 | 825 | lsx_fail_errno(ft, SOX_EOF, "Could not get mpg123 handle: %s", mpg123_plain_strerror(error)); |
826 | 826 | return SOX_EOF; |
827 | 827 | } |
828 | | - error = mpg123_param(p->handle, MPG123_FLAGS, MPG123_FUZZY | MPG123_SEEKBUFFER | MPG123_GAPLESS | MPG123_FORCE_FLOAT, 0); |
| 828 | + error = mpg123_param(p->handle, MPG123_FLAGS, MPG123_FUZZY | MPG123_SEEKBUFFER | MPG123_GAPLESS | MPG123_FORCE_FLOAT, 0.); |
829 | 829 | if (error) { |
830 | 830 | lsx_fail_errno(ft, SOX_EOF, "Unable to set library options: %s", mpg123_plain_strerror(error)); |
831 | 831 | return SOX_EOF; |
@@ -961,7 +961,7 @@ static int stopread(sox_format_t * ft) |
961 | 961 | return SOX_SUCCESS; |
962 | 962 | } |
963 | 963 |
|
964 | | -static int sox_mp3seek(sox_format_t * ft, uint64_t offset) |
| 964 | +static int sox_mp3seek(sox_format_t * ft UNUSED, uint64_t offset UNUSED) |
965 | 965 | { |
966 | 966 | lsx_fail("Seeking in mp3 is not yet implemented"); |
967 | 967 | return SOX_EOF; |
|
0 commit comments