Commit Graph

5499 Commits

Author SHA1 Message Date
Chris Robinson
6a8f5e5950 Build the router with AppVeyor 2018-10-30 15:38:11 -07:00
Chris Robinson
f747ac8882 Clean up the router's PtrIntMap 2018-10-30 14:28:19 -07:00
Chris Robinson
44f91760b5 Use std::array instead of raw arrays 2018-10-30 10:01:49 -07:00
Chris Robinson
e2a1dd4503 Use std::wstring in place of some fixed WCHAR arrays 2018-10-30 09:31:52 -07:00
Chris Robinson
ce212c911c Add a cmake option to static-link winpthread 2018-10-30 09:24:39 -07:00
Chris Robinson
c17e59f63a Use std::vector instead of custom dynamic arrays 2018-10-30 08:33:40 -07:00
Chris Robinson
e75e0a342e Use C++ atomics and mutexes in the router 2018-10-30 07:30:46 -07:00
Chris Robinson
a0d03e50e8 Convert the router to C++ 2018-10-30 07:06:03 -07:00
Chris Robinson
f17b930638 Add extern "C" for router.h 2018-10-30 06:45:44 -07:00
Chris Robinson
71303b73a4 Add a cmake option to static-link libstdc++ 2018-10-29 20:55:45 -07:00
Chris Robinson
3deb7c6ed5 Workaround C++ compatiility issues for atomic.h
This isn't wholly correct since neither C11 or C++11 guarantee compatibility
between atomic implementations. It's desired behavior and mostly works, see:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html

Alignment issues can be fixed with manual alignas() specifications, should the
need arise.
2018-10-29 20:50:57 -07:00
Chris Robinson
5fea511cce Fix some more headers for C++ 2018-10-29 11:51:41 -07:00
Chris Robinson
662e1c5cc2 Fix some uses of RESTRICT 2018-10-29 11:50:41 -07:00
Chris Robinson
ea3789d985 Update version for AppVeyor 2018-10-29 11:35:43 -07:00
Chris Robinson
903d878460 Replace restrict with RESTRICT 2018-10-29 11:32:50 -07:00
Chris Robinson
184241f2ef Simplify a couple more checks 2018-10-29 10:17:30 -07:00
Chris Robinson
e876b50113 Remove unnecessary uses of IN_IDE_PARSER 2018-10-29 10:10:37 -07:00
Chris Robinson
7d5a288e83 Add a couple casts for compiling with C++
Also avoid using __builtin_types_compatible_p, which seems broken with C++?
2018-10-29 10:10:37 -07:00
Chris Robinson
1d7b0f54be Add another missing extern "C" 2018-10-29 10:10:37 -07:00
Chris Robinson
8a8ab68f1c Add a more C++-friendly VECTOR_RESIZE 2018-10-29 10:10:37 -07:00
Chris Robinson
fd1361c198 Add a RESTRICT macro to help with C++ compatibility 2018-10-29 10:10:37 -07:00
Chris Robinson
5148a73a7b Add missing extern "C" 2018-10-29 10:10:37 -07:00
Chris Robinson
f1058c635f Handle C++-only compile flags in cmake 2018-10-29 10:10:37 -07:00
Chris Robinson
7f8ef092aa Fix a couple internal headers to compile with C++ 2018-10-29 10:10:37 -07:00
kcat
44a4602508
Merge pull request #240 from ShFil119/impr/simplify_statements
Simplify some statements
2018-10-29 10:10:06 -07:00
Filip Gawin
08226bc6b0 Simplify some statements 2018-10-29 13:38:58 +01:00
kcat
56b8b97642
Merge pull request #236 from alexey-lysiuk/macos_semaphore
Use GCD semaphore on macOS
2018-10-15 14:16:49 -07:00
alexey.lysiuk
c8d866a25a Use GCD semaphore on macOS
Unnamed POSIX semaphore doesn't work on macOS
2018-10-15 19:41:22 +03:00
Chris Robinson
6761218e51 Release 1.19.1 2018-10-11 15:05:31 -07:00
Chris Robinson
31b9c50721 Use the common init/close functions for alffplay 2018-10-10 16:16:00 -07:00
Chris Robinson
f589244fb6 Allow building alffplay without experimental extensions 2018-10-08 15:03:49 -07:00
Chris Robinson
7a79f09a31 Add a comment about waiting to kill the event thread 2018-10-07 17:18:50 -07:00
Chris Robinson
db65113c5f Use a 24-bit dither depth limit 2018-10-03 13:51:21 -07:00
Chris Robinson
f3f94e478b Don't limit output for ALC_DONT_CARE_SOFT and float samples 2018-10-03 13:48:04 -07:00
Chris Robinson
c39eeb9638 Don't try to get the JNIEnv on Android
It's currently not used. More stuff is needed anyway which may need a different
approach.
2018-10-02 12:40:26 -07:00
Chris Robinson
493c8bbc83 Add back an inadvertently removed static 2018-10-02 12:25:26 -07:00
Chris Robinson
052fdd67cd Use < instead of != for some loop checks 2018-10-01 15:59:05 -07:00
Chris Robinson
ed8f44d102 Don't scale the reverb fade counter so much 2018-09-30 16:34:00 -07:00
Chris Robinson
1d1acc0c34 Ensure BUFFERSIZE is a power of 2 2018-09-30 12:12:27 -07:00
Chris Robinson
1860b2ec8a Make the Compressor struct opaque 2018-09-30 12:08:01 -07:00
Chris Robinson
7ad4f753a4 Fix some length ranges 2018-09-29 19:39:49 -07:00
Chris Robinson
d5a78f0843 Improve a couple loops
Avoid masking the index with each iteration, and instead do up to when the mask
would apply. This allows for better optimizations, in particular fewer
instructions and better chances for vectorization.
2018-09-29 18:48:28 -07:00
Chris Robinson
32494e72a5 Don't use a ringbuffer design for the limiter's side chain
Rather than continuously wrapping when used, each update uses it from the front
and copies the tail to the front at the end. This allows for more effficient
accesses in loops.
2018-09-29 11:54:45 -07:00
Chris Robinson
0396c0ecd2 Add some assumes for the limiter 2018-09-29 09:47:05 -07:00
Chris Robinson
51a447852f Simplify a lower-bound clamp 2018-09-28 18:34:21 -07:00
Chris Robinson
1684b2cc5f Constify a couple more variables 2018-09-28 16:42:22 -07:00
Chris Robinson
1dee902a5f Update changelog 2018-09-26 08:23:48 -07:00
Chris Robinson
79314c4461 Include the limiter's lookAhead delay in the device latency 2018-09-25 23:05:27 -07:00
Chris Robinson
2d6309d6fc Don't hardcode the limiter threshold
It's now calculated from the output sample type and dither depth.
2018-09-25 10:33:20 -07:00
Chris Robinson
c69338bc0d Update the output limiter/compressor
This provides better characteristics for an amplitude limiter. In particular,
it utilizes the peak amplitude instead of the RMS, and the used parameters
basically guarantee no output samples exceed the given threshold... almost, due
to floating-point errors as the threshold is converted from dB to log-e for the
envelope, then is negated and converted to linear amplitude to apply to the
signal. It's quite possible for some rounding errors to creep in and not
perfectly saturate the result.
2018-09-25 10:04:14 -07:00