mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
update mpg123 to 1.28.0
This commit is contained in:
parent
f1ba61ebe0
commit
c1a0e1efcc
4 changed files with 22 additions and 9 deletions
25
deps/mpg123/include/mpg123.h
vendored
25
deps/mpg123/include/mpg123.h
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
libmpg123: MPEG Audio Decoder library (version 1.27.2)
|
libmpg123: MPEG Audio Decoder library (version 1.28.0)
|
||||||
|
|
||||||
copyright 1995-2015 by the mpg123 project
|
copyright 1995-2015 by the mpg123 project
|
||||||
free software under the terms of the LGPL 2.1
|
free software under the terms of the LGPL 2.1
|
||||||
|
@ -76,10 +76,17 @@ typedef ptrdiff_t ssize_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MPG123_NO_CONFIGURE /* Enable use of this file without configure. */
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
/* You can always enforce largefile hackery by setting MPG123_LARGESUFFIX. */
|
||||||
|
/* Otherwise, this header disables it if the build system decided so. */
|
||||||
|
#if !defined(MPG123_LARGESUFFIX) && 0
|
||||||
|
#ifndef MPG123_NO_LARGENAME
|
||||||
|
#define MPG123_NO_LARGENAME
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Simplified large file handling.
|
/* Simplified large file handling.
|
||||||
I used to have a check here that prevents building for a library with conflicting large file setup
|
I used to have a check here that prevents building for a library with conflicting large file setup
|
||||||
(application that uses 32 bit offsets with library that uses 64 bits).
|
(application that uses 32 bit offsets with library that uses 64 bits).
|
||||||
|
@ -136,8 +143,6 @@ typedef ptrdiff_t ssize_t;
|
||||||
|
|
||||||
#endif /* largefile hackery */
|
#endif /* largefile hackery */
|
||||||
|
|
||||||
#endif /* MPG123_NO_CONFIGURE */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -732,7 +737,7 @@ MPG123_EXPORT int mpg123_getformat2( mpg123_handle *mh
|
||||||
* will also be decoded without you really noticing. Just the speed could be
|
* will also be decoded without you really noticing. Just the speed could be
|
||||||
* wrong if you do not care about sample rate at all.
|
* wrong if you do not care about sample rate at all.
|
||||||
* \param mh handle
|
* \param mh handle
|
||||||
* \param path filesystem path
|
* \param path filesystem path (see mpg123_open())
|
||||||
* \param channels allowed channel count, either 1 (MPG123_MONO) or
|
* \param channels allowed channel count, either 1 (MPG123_MONO) or
|
||||||
* 2 (MPG123_STEREO), or bitwise or of them, but then you're halfway back to
|
* 2 (MPG123_STEREO), or bitwise or of them, but then you're halfway back to
|
||||||
* calling mpg123_format() again;-)
|
* calling mpg123_format() again;-)
|
||||||
|
@ -745,8 +750,16 @@ MPG123_EXPORT int mpg123_open_fixed(mpg123_handle *mh, const char *path
|
||||||
/** Open and prepare to decode the specified file by filesystem path.
|
/** Open and prepare to decode the specified file by filesystem path.
|
||||||
* This does not open HTTP urls; libmpg123 contains no networking code.
|
* This does not open HTTP urls; libmpg123 contains no networking code.
|
||||||
* If you want to decode internet streams, use mpg123_open_fd() or mpg123_open_feed().
|
* If you want to decode internet streams, use mpg123_open_fd() or mpg123_open_feed().
|
||||||
|
*
|
||||||
|
* The path parameter usually is just a string that is handed to the underlying
|
||||||
|
* OS routine for opening, treated as a blob of binary data. On platforms
|
||||||
|
* where encoding needs to be involved, something like _wopen() is called
|
||||||
|
* underneath and the path argument to libmpg123 is assumed to be encoded in UTF-8.
|
||||||
|
* So, if you have to ask yourself which encoding is needed, the answer is
|
||||||
|
* UTF-8, which also fits any sane modern install of Unix-like systems.
|
||||||
|
*
|
||||||
* \param mh handle
|
* \param mh handle
|
||||||
* \param path filesystem path
|
* \param path filesystem
|
||||||
* \return MPG123_OK on success
|
* \return MPG123_OK on success
|
||||||
*/
|
*/
|
||||||
MPG123_EXPORT int mpg123_open(mpg123_handle *mh, const char *path);
|
MPG123_EXPORT int mpg123_open(mpg123_handle *mh, const char *path);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
||||||
# The variable CVF_VERSION must be set before calling configure_file().
|
# The variable CVF_VERSION must be set before calling configure_file().
|
||||||
|
|
||||||
set(PACKAGE_VERSION "1.27.2")
|
set(PACKAGE_VERSION "1.28.0")
|
||||||
|
|
||||||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||||
|
|
BIN
deps/mpg123/lib/libmpg123.a
vendored
BIN
deps/mpg123/lib/libmpg123.a
vendored
Binary file not shown.
2
deps/mpg123/lib/pkgconfig/libmpg123.pc
vendored
2
deps/mpg123/lib/pkgconfig/libmpg123.pc
vendored
|
@ -6,7 +6,7 @@ includedir=${prefix}/include
|
||||||
Name: libmpg123
|
Name: libmpg123
|
||||||
Description: An optimised MPEG Audio decoder
|
Description: An optimised MPEG Audio decoder
|
||||||
Requires:
|
Requires:
|
||||||
Version: 1.27.2
|
Version: 1.28.0
|
||||||
Libs: -L${libdir} -lmpg123
|
Libs: -L${libdir} -lmpg123
|
||||||
Libs.private:
|
Libs.private:
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|
Loading…
Reference in a new issue