Chris Robinson
21dc2c761d
Check for and use copysignf
2018-08-29 03:53:09 -07:00
Chris Robinson
bd9c6989c2
Clear the TLS pointer after running its destructor callback
2018-06-06 23:10:37 -07:00
Chris Robinson
803d331711
Improve formatting of the hilbert function
2018-05-24 00:16:50 -07:00
Raulshc
97c165b951
Add correct cast
2018-05-20 18:44:24 +02:00
Raulshc
dd51ba396b
Common: Implement discrete Hilbert transform
2018-05-20 17:21:50 +02:00
Chris Robinson
e42489b3e9
Include math_defs.h to ensure M_PI is defined
2018-05-15 18:50:32 -07:00
Chris Robinson
2b9064cb6e
Move the ALcomplex and FFT functions to a separate file
2018-05-15 18:31:41 -07:00
Chris Robinson
5272caf7f4
More accurately convert between degrees and radians
2018-05-14 00:20:31 -07:00
Chris Robinson
788f5398b0
Slightly relax the memory order for ref counters
2018-03-26 10:14:27 -07:00
Chris Robinson
7789cc8e32
Define the Hanning window globally once for the pitch shifter
2018-03-22 09:55:15 -07:00
Chris Robinson
dac9379449
Add methods to clean up althrd and altss data
2018-03-10 12:10:58 -08:00
Chris Robinson
b11e31fbfd
Clear stale 'post's on the event semphaphore
2018-02-11 06:14:18 -08:00
Chris Robinson
f5f996c14a
Check for a cbrtf function
2018-02-06 02:35:08 -08:00
Chris Robinson
a114d6cbb5
Remove unused _timed methods
...
They're not reliably implemented anyway, as some systems will just flat out
fail when trying to use them.
2018-02-01 22:24:17 -08:00
Chris Robinson
3a90fd5751
Avoid an unnecessary temp variable
2018-02-01 19:11:23 -08:00
Chris Robinson
4ec31291c0
Add semaphore functions to the thread API wrapper
2018-02-01 17:37:31 -08:00
Chris Robinson
d1da9f1f67
Remove some now-unused NoLock function variants
2018-01-28 00:53:21 -08:00
Chris Robinson
4d1795e90b
Remove an unused function
2018-01-27 19:04:32 -08:00
Chris Robinson
3baf9d0e81
Add a method to get the system's page size
2018-01-16 19:28:10 -08:00
Chris Robinson
4db1328bc5
Move the FORCE_ALIGN macro to threads.h
2018-01-12 03:55:33 -08:00
Chris Robinson
2873abcbc0
Fix up some types for MSVC
2018-01-11 10:55:35 -08:00
Chris Robinson
e89c183231
Avoid including alMain.h in ringbuffer.c
2018-01-11 10:03:26 -08:00
Chris Robinson
d57eca57a9
Use _wfopen_s to silence MSVC security warnings
2017-10-07 14:48:07 -07:00
Chris Robinson
724d6267c8
Add a check for pthread_setname_np with three parameters
...
As found in NetBSD.
2017-09-15 22:09:37 -07:00
Chris Robinson
0b0ae75ccf
I guess -1 isn't allowed for the output
2017-08-30 18:04:04 -07:00
Chris Robinson
226efffd21
Free the args returned by CommandLineToArgvW
2017-08-30 17:08:38 -07:00
Chris Robinson
67f183f206
Avoid using wmain on Windows
2017-08-30 16:33:44 -07:00
Chris Robinson
e3d99412a2
Include limits.h where INT_MAX is used
2017-08-30 12:01:49 -07:00
Chris Robinson
f1bbf2e48a
Use a common header for Unicode-awareness on Windows
2017-08-27 06:01:31 -07:00
Chris Robinson
ec13cf6c9c
Add casts to silence MSVC
2017-06-29 10:28:22 -07:00
Chris Robinson
a69d608a1e
Define a backup log2f if the compiler doesn't have it
2017-06-29 10:11:31 -07:00
Chris Robinson
aefa11b6ad
Workaround for MSVC not liking 1.0f/0.0f for float infinity
2017-06-29 09:57:19 -07:00
Chris Robinson
c234b25ac7
Use more correct doppler shift calculations
2017-05-20 03:28:40 -07:00
Chris Robinson
d9bf4f7620
Allow increasing the maximum source limit
...
If the requested number of mono and stereo sources exceeds 256, the source
limit will be expanded. Any config file setting overrides this. If the device
is reset to have fewer sources than are currently allocated, excess sources
will remain and be usable as normal, but no more can be generated until enough
are delated to go back below the limit.
2017-04-14 23:50:49 -07:00
Chris Robinson
afb59e7f98
Move internal headers out of the include directory
2017-04-14 18:15:56 -07:00
Chris Robinson
70aefa75e2
Use an array of pointers for effects instead of a linked list
2017-03-27 23:16:23 -07:00
Chris Robinson
24de5127b1
Update binary search algorithm for uintmaps
2017-01-12 10:09:39 -08:00
Chris Robinson
02a6031d03
Use atomic flags for boolean atomic locks
2016-11-25 23:25:16 -08:00
Chris Robinson
8492c2845d
Avoid some unnecessary seq_cst memory ordering
2016-11-22 03:40:15 -08:00
Chris Robinson
958301d880
Try increasing the stack size if thread creation fails
...
Also increase the default stack size to 2MB.
2016-09-08 06:30:25 -07:00
Chris Robinson
fe2fb81047
Fix a direct access to a UIntMap
2016-07-09 16:42:36 -07:00
Chris Robinson
8f4d6c48ce
Use separate arrays for UIntMap keys and values
2016-07-04 20:35:32 -07:00
Chris Robinson
f0cbcdc928
Use al_malloc/al_free for the UIntMap array
2016-07-04 10:26:46 -07:00
Chris Robinson
d1c4fb6364
Don't try to emulate almtx_timedlock
2016-05-30 05:04:49 -07:00
Chris Robinson
01f3e33df9
Remove a couple unneeded functions
2016-05-25 06:45:56 -07:00
Chris Robinson
906a4bb22d
Hold the source map lock while handling it
2016-05-10 22:49:24 -07:00
Chris Robinson
2ccc1d1d8a
Move the aligned malloc functions to the common lib
2016-03-29 00:44:58 -07:00
Chris Robinson
000ced3795
Avoid underflow in alcnd_timedwait if the time point is already passed
2016-02-07 17:47:52 -08:00
Chris Robinson
f4fa41487c
Replace some CreateEvent calls with CreateEventW
2016-02-07 16:14:27 -08:00
Chris Robinson
bb0ac26ce1
Explicit check if pthread_setname_np accepts only one parameter
2016-01-21 02:33:45 -08:00