diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-07-28 23:46:49 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-07-28 23:46:49 +0000 |
commit | 634e76de2ca43635fc6ba62d1d66e8eda5f3bb0c (patch) | |
tree | 17610a266676fd7c1d0dfee5d61897a3789219b9 /audio/moc/files/patch-audio__conversion.c | |
parent | - Re-enable CJK patches (diff) |
Add moc.
MOC (music on console) is a console audio player designed to be powerful and
easy to use.
MOC plays smoothly, regardless of system or I/O load, because it handles the
output buffer in a separate thread. It does not cause gaps between files,
because the next file to be played is pre-cached while playing the current
file.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, WAVE,
AIFF, AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC.
WWW: http://moc.daper.net/
PR: ports/84153
Submitted by: Integral <rzinkov@gmail.com>
Diffstat (limited to 'audio/moc/files/patch-audio__conversion.c')
-rw-r--r-- | audio/moc/files/patch-audio__conversion.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/audio/moc/files/patch-audio__conversion.c b/audio/moc/files/patch-audio__conversion.c new file mode 100644 index 000000000000..8d4484c56182 --- /dev/null +++ b/audio/moc/files/patch-audio__conversion.c @@ -0,0 +1,45 @@ +--- audio_conversion.c.orig Wed Jun 15 18:56:46 2005 ++++ audio_conversion.c Fri Jul 29 01:19:15 2005 +@@ -27,7 +27,8 @@ + #define __USE_ISOC99 1 + + #include <assert.h> +-#include <stdint.h> ++#include <inttypes.h> ++#include <limits.h> + #include <stdlib.h> + #include <math.h> + #include <string.h> +@@ -43,6 +44,32 @@ + #include "main.h" + #include "log.h" + #include "options.h" ++ ++/* FreeBSD 4.x lacks these */ ++ ++#ifndef INT8_MIN ++#define INT8_MIN CHAR_MIN ++#endif ++ ++#ifndef INT8_MAX ++#define INT8_MAX CHAR_MAX ++#endif ++ ++#ifndef INT16_MIN ++#define INT16_MIN SHRT_MIN ++#endif ++ ++#ifndef INT16_MAX ++#define INT16_MAX SHRT_MAX ++#endif ++ ++#ifndef INT32_MIN ++#define INT32_MIN INT_MIN ++#endif ++ ++#ifndef INT32_MAX ++#define INT32_MAX INT_MAX ++#endif + + /* Byte order conversion */ + /* TODO: use functions from byteswap.h if available */ |