Chris Robinson
310770c531
Add and use new/delete operators to ALeffectslot
2018-11-18 02:52:46 -08:00
Chris Robinson
3eededf5d6
Use a normal vector for auxiliary effect slots
2018-11-18 02:39:27 -08:00
Chris Robinson
7b95712f38
Use a proper vector for the source sublists
2018-11-18 02:15:31 -08:00
Chris Robinson
4dc8f44d00
Move the alignment-aware allocator and vector to headers
2018-11-18 01:33:26 -08:00
Chris Robinson
d7cc9b912b
Use new/delete for ALCcontext objects
2018-11-18 00:38:31 -08:00
Chris Robinson
38d6df9c1d
Store the listener directly in the context
2018-11-17 23:41:11 -08:00
Chris Robinson
e79d9bdd1a
Move the vector and matrix declarations to a separate header
2018-11-17 23:21:37 -08:00
Chris Robinson
fa3c34268d
Move the ALCcontext definition to its own header
2018-11-17 23:02:27 -08:00
Chris Robinson
8f6e0f97ec
Try to clear up an MSVC warning
2018-11-17 21:48:54 -08:00
Chris Robinson
20e62aa959
Avoid an explicit static_cast to bool
2018-11-17 20:39:45 -08:00
Chris Robinson
d10301c209
Remove unused headers and checks
2018-11-17 19:52:54 -08:00
Chris Robinson
1ac41d3ea0
Convert almalloc.c to C++
2018-11-17 19:01:10 -08:00
Chris Robinson
8c69fb046c
Always use C++11 atomics
2018-11-17 18:56:00 -08:00
Chris Robinson
1468dee831
Convert bs2b.c to C++
2018-11-17 18:54:10 -08:00
Chris Robinson
9992cef915
Remove now unneeded inldefs.c
...
All code using inline functions is now C++, so will generate callable functions
as-needed.
2018-11-17 17:52:23 -08:00
Chris Robinson
7f69dbb517
Convert the mixers to C++
2018-11-17 17:49:55 -08:00
Chris Robinson
2d4ff77410
Remove ASSUME_ALIGNED
...
It's become a liability with C++ since it returns void* instead of the input
pointer type, and it doesn't seem to help optimizations anyway (auto-
vectorization still produces unaligned loads and stores).
2018-11-17 17:35:52 -08:00
Chris Robinson
e5442db803
Convert the filters to C++
2018-11-17 17:22:32 -08:00
Chris Robinson
ed5d222eed
Remove the old unused bsincgen.c
2018-11-17 07:50:46 -08:00
Chris Robinson
057b1411f9
Convert ringbuffer.c to C++
2018-11-17 07:45:10 -08:00
Chris Robinson
ff4219e54e
Convert mastering.c to C++
2018-11-17 07:40:10 -08:00
Chris Robinson
6e6a024058
Convert converter.c to C++
2018-11-17 07:35:11 -08:00
Chris Robinson
13478126cb
Convert the remaining effects to C++
2018-11-17 07:08:41 -08:00
Chris Robinson
93d96ced9c
Convert the dedicated, distortion, echo, and equalizer to C++
2018-11-17 06:53:20 -08:00
Chris Robinson
ad34855a2b
Add a couple missing includes
2018-11-17 06:11:55 -08:00
Chris Robinson
7b537c795b
Don't pass the current thread to althrd_setname
2018-11-17 06:07:04 -08:00
Chris Robinson
1fae8c16a8
Convert threads.c to C++
...
Also vastly simplify and remove related code.
2018-11-17 05:31:29 -08:00
Chris Robinson
ccdaca80c9
Use standard complex types instead of custom
2018-11-17 04:14:57 -08:00
Chris Robinson
09943683b5
Remove some more unused stuff
2018-11-17 02:41:21 -08:00
Chris Robinson
b485cbe53a
Make the Hann windows const
2018-11-17 02:30:41 -08:00
Chris Robinson
b69b3bd89f
Convert fshifter.c to C++
2018-11-17 01:58:38 -08:00
Chris Robinson
aa66ed0ea5
Convert modulator.c to C++
2018-11-17 01:53:39 -08:00
Chris Robinson
a7d3c24b51
Convert null.c to C++
2018-11-17 01:49:26 -08:00
Chris Robinson
557048afa2
Convert pshifter.c to C++
2018-11-17 01:36:47 -08:00
Chris Robinson
f1731af282
Remove unneeded declarations and definitions
2018-11-17 01:29:35 -08:00
Chris Robinson
3bbfd0c099
Fix compilation with MSVC
2018-11-16 23:01:40 -08:00
Chris Robinson
1bd40d9434
Put a lambda in the call_once call
...
This optimizes better and avoids a visible symbol (templating to an anonymous
lambda type will generate a unique anonymous instantiation, making inlining
more likely, whereas passing a general function pointer/reference type will
likely use or generate a publically available instance).
2018-11-16 22:41:04 -08:00
Chris Robinson
de8d8b5216
Remove unused altss types and methods
2018-11-16 22:12:35 -08:00
Chris Robinson
ee8e6733e1
Avoid using C-style TLS
2018-11-16 21:55:11 -08:00
Chris Robinson
8410e71a34
Convert the reverb effect to C++
2018-11-16 21:31:52 -08:00
Chris Robinson
a68d0b68d7
Convert mixvoice.c to C++
2018-11-16 20:46:50 -08:00
Chris Robinson
53373a43b8
Convert ALu.c to C++
...
Required changes to bsincgen to generate C++-friendly structures.
2018-11-16 20:32:19 -08:00
Chris Robinson
317acd6ae2
Convert alEffect.c and alFilter.c to C++
2018-11-16 18:44:43 -08:00
Chris Robinson
a15a678da6
Convert alListener.c to C++
2018-11-16 18:37:55 -08:00
Chris Robinson
0e0fe15b98
Convert alAuxEffectSlot.c to C++
2018-11-16 18:28:39 -08:00
Chris Robinson
ce370be52b
Remove some unneeded includes
2018-11-16 08:09:56 -08:00
Chris Robinson
50f36d39f7
Use lock_guard instead of manual lock/unlock calls
2018-11-16 07:11:27 -08:00
Chris Robinson
165c162d01
Convert alState.c to C++
2018-11-16 06:48:33 -08:00
Chris Robinson
436db28a3f
Convert alError.c to C++
2018-11-16 06:24:24 -08:00
Chris Robinson
8be45fe8a5
Convert alExtension.c to C++
2018-11-16 06:08:25 -08:00