5529 Commits

Author SHA1 Message Date
Chris Robinson
e23796aabe Use a standard string for the enumerated HRTF names 2018-11-18 21:18:19 -08:00
Chris Robinson
140c139852 Use a standard string for the device's HRTF name 2018-11-18 19:28:01 -08:00
Chris Robinson
2c06ec7093 Use a regular vector for the enumerated HRTF list 2018-11-18 19:19:35 -08:00
Chris Robinson
bafcba7194 Use a std::string for the device name 2018-11-18 18:45:45 -08:00
Chris Robinson
b10e7d08c3 Use a std::thread for the event thread 2018-11-18 18:04:27 -08:00
Chris Robinson
ef7995cfd0 Fix the initial device refcount 2018-11-18 08:14:23 -08:00
Chris Robinson
aef52be432 Fix a float constant type 2018-11-18 08:03:22 -08:00
Chris Robinson
8b8f01e25d Avoid more cases of an enum variable and type name clash 2018-11-18 08:01:50 -08:00
Chris Robinson
336b7b7799 Use constructors/destructors with ALCdevice
As with ALCcontext, this is really ALCdevice_struct because of the way it's
declared in the public header.
2018-11-18 07:33:42 -08:00
Chris Robinson
1bc88ed751 Avoid a fixed-size string buffer 2018-11-18 07:00:43 -08:00
Chris Robinson
5bbddff2f3 Separate class and variable definitions 2018-11-18 06:46:50 -08:00
Chris Robinson
e194d896de Use constructors/destructors for ALeffectslot 2018-11-18 06:35:45 -08:00
Chris Robinson
ad82a70a65 Use cleaner constructor/destructor calls for ALCcontext
Note that the actual type name is ALCcontext_struct, because of how it's
defined in AL/alc.h (ALCcontext is just an alias to struct ALCcontext_struct).
2018-11-18 05:40:00 -08:00
Chris Robinson
de13f30e28 Improve audio underrun recordery in alffplay
Now it has a better idea to skip samples during refill instead of after
restarting.
2018-11-18 05:38:03 -08:00
Chris Robinson
0851dc12b4 Remove an unused typedef 2018-11-18 04:26:28 -08:00
Chris Robinson
f48be9d73b Remove the pointer-specific atomic exchange macros 2018-11-18 03:59:39 -08:00
Chris Robinson
7433cb5f4c Avoid naming a struct member the same as an enum type 2018-11-18 03:39:32 -08:00
Chris Robinson
bf30eb0391 Use std::isfinite instead of the global isfinite 2018-11-18 03:25:32 -08:00
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