Erik de Castro Lopo
731655ad23
replaygain_analysis : Rename float_t -> flac_float_t.
...
There were a number of reports that float_t clashed with a type
defined in Linux system header files.
2014-06-24 21:01:02 +10:00
Erik de Castro Lopo
6c9abe3690
Makefile.ams : Drop passing of include/share as an include directory.
...
Some files needed to be updated to incude "share/xxx.h" instead of
"xxx.h".
Suggested-by: lvqcl <lvqcl.mail@gmail.com>
2014-06-16 14:23:57 +10:00
Erik de Castro Lopo
b4f7528e9a
replaygain_analysis : Switch to standard C sized integer types.
2014-06-16 07:24:43 +10:00
Erik de Castro Lopo
19b549f82f
regainplay_analysis : Work around GCC optimizer bug.
...
Discussion: http://lists.xiph.org/pipermail/flac-dev/2014-June/004720.html
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-06-15 20:32:48 +10:00
Erik de Castro Lopo
b8d58e327c
Revert "Replace FLAC__CPU_X86_64 with FLaC__CPU_X86_64."
...
This reverts commit 151739921b74fbf31420358a5fbeb094efa017ed.
This patch only when part way to replace all FLAC_* with FLaC_*
and its really not worth going all the way.
2014-06-15 20:29:34 +10:00
Erik de Castro Lopo
151739921b
Replace FLAC__CPU_X86_64 with FLaC__CPU_X86_64.
...
Previous autorconf versions had problems with variable begining witj
'FLAC_' (autoconf uses 'AC_').
Reported-by: lvqcl <lvqcl.mail@gmail.com>
2014-06-01 17:33:54 +10:00
Erik de Castro Lopo
cdb465787c
src/ : Fix two typos.
...
* 'norrmal' -> 'normal'.
* 'fames' -> 'frames'.
Reported-by: lvqcl <lvqcl.mail@gmail.com>
2014-06-01 17:33:34 +10:00
Erik de Castro Lopo
be0a894278
configure.ac : Add -fvisibility=hidden to OSX build.
...
Patch-from : Ozkan Sezer <sezeroz@gmail.com>
2014-05-25 19:42:57 +10:00
Erik de Castro Lopo
2be824a1e3
replaygain_synthesis.c : Replace an int64_t/int32_t operation with a shift.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-05-18 13:49:56 +10:00
Erik de Castro Lopo
0da01cb255
src/share/replaygain_synthesis/ : Remove old fast float math hack.
...
Old code was for the Intel compiler, had no appreciable performance benefits
and doesn't actually work with current version of that compiler.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-05-18 13:44:23 +10:00
Erik de Castro Lopo
93d951f46e
Remove Monkey's Audio from FLAC.sln.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-05-14 21:57:09 +10:00
Erik de Castro Lopo
96a5c54feb
Purge src/monkeys_audio_utilities/ tree.
...
Monkey's Audio Utilities seem to have been dead for some time.
2014-05-14 21:48:13 +10:00
Erik de Castro Lopo
3d394924ff
libFLAC/ : Refactoring and add comments.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-05-14 21:28:55 +10:00
Erik de Castro Lopo
b1b6caf8e1
replaygain_synthesis.h : Fix FLAC_SHARE__MAX_SUPPORTED_CHANNELS.
...
Was previously hard coded as 2 when it should be FLAC__MAX_CHANNELS.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-05-11 03:24:32 -07:00
Erik de Castro Lopo
7963120a0d
src/libFLAC/memory.c : Wrap inclusion of <stdint.h> in #ifdef.
...
Lack of the #ifdef was causing problems on VS2008.
2014-05-11 03:06:49 -07:00
Erik de Castro Lopo
d4d5060e9e
src/flac/decode.c : Decode WAVEFORMATEXTENSIBLE_CHANNEL_MASK.
...
When decoding, read the contents of the WAVEFORMATEXTENSIBLE_CHANNEL_MASK
tag and write write the channel mask to the WAV file.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-28 05:10:16 +10:00
Erik de Castro Lopo
11b004cacf
libFLAC/stream_encoder.c : Fix if else wibble.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-15 18:36:46 +10:00
Erik de Castro Lopo
c2aeedca3e
src/flac/utils.c : Fix compile guard for ioctl().
2014-04-15 18:31:58 +10:00
Erik de Castro Lopo
619d821b68
Add files missing from commit 93f6109c9016.
2014-04-12 07:13:08 +10:00
Erik de Castro Lopo
93f6109c90
Add intrinsics version of two lpc functions.
...
Functions:
- FLAC__fixed_compute_best_predictor
- FLAC__fixed_compute_best_predictor_wide
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-11 06:21:15 +10:00
Erik de Castro Lopo
d456cdd28a
Suppress MSVS warnings when compiling for x86-64.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-11 06:18:52 +10:00
Erik de Castro Lopo
1a6df83163
Use _M_X64 instead of _WIN64.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-11 06:16:37 +10:00
Erik de Castro Lopo
ce3e09e718
share/compat.h : Remove duplicate flac_stat definition.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-04-11 06:14:40 +10:00
Erik de Castro Lopo
3f5208c300
Fix clang compiler warnings.
...
These were most arising from -Wenum-conversion where an enum of
one type was being assigned to a variable on another.
Originally reported by Lenny Maiorani <lenny@colorado.edu> on the
flac-dev mailing list.
2014-04-09 18:09:03 +10:00
Erik de Castro Lopo
2c45537721
configure.ac : Allow -Werror to be enabled when using clang.
2014-04-09 09:49:11 +10:00
Erik de Castro Lopo
ac940e4175
libFLAC/cpu.c : Bundle of minor fixes.
...
Includes:
* Replace 'CALLBACK' with 'WINAPI' because the signature of an unhandled
exception filter uses 'WINAPI'.
* Improvements to OS SSE testing code.
* Improvements to GCC asm code.
* Comment fixes.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-27 19:30:47 +11:00
Erik de Castro Lopo
1e0856664d
test_libFLAC.vcproj : Add missing files.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-27 19:27:25 +11:00
Erik de Castro Lopo
006b8356d5
Fix all instances of '#if HAVE_CONFIG_H'.
...
Should be '#ifdef HAVE_CONFIG_H'.
Closes: https://sourceforge.net/p/flac/bugs/410/
2014-03-24 12:06:49 +11:00
Erik de Castro Lopo
49d9d742e2
metadata_object.c : Fix handling of zero length vorbis comment string.
...
Previously if a zero length string was passed in, the pointer would be
stored regardless of the copy parameter. If the original source pointer
was reassigned to something else bad things could happen.
Closes: https://sourceforge.net/p/flac/bugs/377/
2014-03-23 21:41:01 +11:00
Erik de Castro Lopo
697dbdee8f
Revert "Attempt to fix differences between x86 FPU and SSE calculations."
...
This reverts commit 70b078cfd5f9d4b0692c33f018cac3c652b14f90.
The code in the patch we're reverting probably only works for one
compiler and could easily stop working with the next release of
that compiler.
2014-03-23 19:58:44 +11:00
Erik de Castro Lopo
70b078cfd5
Attempt to fix differences between x86 FPU and SSE calculations.
...
The x86 FPU holds intermediate results in larger registers than what
the SSE unit uses, resulting in slighlty different encodings of audio
data. Attempt to fix this by modifying libFLAC/lpc.c to store calculation
results in a FLAC__read before adding it to a sum.
At the moment this works, but I could easily imagine a new version of
the compiler optimising this store to the FLAC__real away leaving us
in the same situation we have now.
Patch-from: Oliver Stöneberg on sourceforge.net
Closes: https://sourceforge.net/p/flac/bugs/409/
2014-03-21 19:26:08 +11:00
Erik de Castro Lopo
bc2b8c6e16
configure.ac : Add -Wunreachable-code to GCC CFLAGS.
2014-03-21 18:52:24 +11:00
Erik de Castro Lopo
95bc23a811
configure.ac : Add AC_PROG_MKDIR_P.
...
Closes: https://sourceforge.net/p/flac/bugs/404/
2014-03-21 18:27:41 +11:00
Erik de Castro Lopo
d7e6d91fba
Fix build issue on OSX with GCC 4.2/Xcode.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-21 17:45:21 +11:00
Erik de Castro Lopo
cf55fc7bd7
Add a test to validate that FLAC__MD5Final clears the MD5Context.
...
Closes: https://sourceforge.net/p/flac/bugs/407/
2014-03-15 18:31:00 +11:00
Erik de Castro Lopo
9863998c99
configure.ac : Make --enable-sse the default.
...
SSE can still be disabled by configuring with --disable-sse but SSE
will be enabled by default.
2014-03-15 16:47:52 +11:00
Erik de Castro Lopo
7e85023c9f
Slight improvements to application metadata tests.
2014-03-15 10:45:40 +11:00
Erik de Castro Lopo
99d5154f43
libFLAC/cpu.c : Detect SSE correctly on Windows when compiling with MinGW.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:40:56 +11:00
Erik de Castro Lopo
47bd9964fa
stream_encoder/decoder : Comment fixes.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
f931d13411
libFLAC/format.c : Remove MSVC6 specific hack.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
bdcbce4bfa
lpc_asm.nasm : Whitespace.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
d36ef6298b
Whitespace.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
25ac67a5f1
Remove _MSC_VER specific FLAC__I64L definition.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
3f3e178cb0
src/test_seeking : Remove un-needed local__strtoull.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
4bc1220b32
Move FLAC__STRCASECMP definition to compat.h.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Erik de Castro Lopo
f5902a474c
Fix pragma warning.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-14 15:33:11 +11:00
Fengwei Yin
7cbecbae9f
Using uintptr_t to simplify pointer handling a little bit
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-03-14 15:32:50 +11:00
Martijn van Beurden
163b734010
Repairs test_grabbag.sh
...
The change from /bin/sh to /bin/bash -e (commit 1d3d50) broke
the cuesheet tests. This should fix it
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-03-14 15:32:39 +11:00
Erik de Castro Lopo
15e28a4b94
src/libFLAC/ : CPU feature detection improvements.
...
CPU detection used to depend on ASM code. Now CPU features are
also detected when only FLAC__HAS_X86INTRIN is defined.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-03-02 21:36:45 +11:00
Erik de Castro Lopo
ace63cc828
stream_encoder.c : ifdef cleanup.
...
Patch-from: lvqcl <lvqcl.mail@gmail.com>
2014-02-25 18:38:20 +11:00