Commit Graph

5602 Commits

Author SHA1 Message Date
Chris Robinson fb94cdcfd3 Restructure and clean up alu.cpp a bit 2018-11-23 13:12:48 -08:00
Chris Robinson 438e626993 Avoid a couple explicit loops 2018-11-22 22:53:22 -08:00
Chris Robinson 976e49711b Add noexcept to a bunch of inline functions 2018-11-22 19:47:41 -08:00
Chris Robinson 30ee6e1b3f Make a DirectHrtfState constructor to try appeasing MSVC 2018-11-22 14:36:37 -08:00
Chris Robinson d26b5d9467 Use proper time types for the device clock time and latency 2018-11-22 14:32:48 -08:00
Chris Robinson 84f0f74d07 Use standard types for the device clock times 2018-11-22 12:53:16 -08:00
Chris Robinson bb9d8db73c Clean up alSource.cpp some 2018-11-22 12:02:02 -08:00
Chris Robinson cc938c34b2 Clean up the Chorus a little 2018-11-22 08:08:46 -08:00
Chris Robinson 9c155a57fb Use unique_ptr for DirectHrtfState 2018-11-22 07:54:29 -08:00
Chris Robinson ba8c865513 Add and use a macro to define placement-new-only allocators
This is for structs that utilize over-allocation, either flexible array
members, or which store optional additional objects in the same allocation
block.
2018-11-22 07:06:42 -08:00
Chris Robinson ab6db9a589 Clean up some unnecessary specifiers 2018-11-22 06:59:32 -08:00
Chris Robinson 9d73e03aaa Use unique_ptr for bs2b 2018-11-22 06:49:37 -08:00
Chris Robinson b3b4220182 Use unique_ptr for BFormatDec and AmbiUpsampler 2018-11-22 05:37:35 -08:00
Chris Robinson 671ed1abf8 Use a unique_ptr for the FrontStablizer 2018-11-22 04:53:29 -08:00
Chris Robinson cc3e2a838f Use a unique_ptr for the Compressor 2018-11-21 16:46:52 -08:00
Chris Robinson eefc379a23 Use a unique_ptr for Uhj2Encoder 2018-11-21 15:31:32 -08:00
Chris Robinson dfcc98afbf Fix deleting the same buffer ID multiple times in one call 2018-11-21 11:51:34 -08:00
Chris Robinson d20522166e Use RAII more in alSource.cpp 2018-11-21 11:11:25 -08:00
Chris Robinson 9f2a77f788 Use RAII when handling the mixer's FPU state 2018-11-21 09:07:02 -08:00
Chris Robinson 8f43f737ba Avoid using ATOMIC macros 2018-11-21 07:52:17 -08:00
Chris Robinson de4bb7aca1 Replace a couple more almtx_lock/unlock calls 2018-11-21 06:41:49 -08:00
Chris Robinson 75213ee6f9 Always use RAII with EffectSlotLock 2018-11-21 05:35:47 -08:00
Chris Robinson 757c42c74b Use a normal vector for the distance buffer storage 2018-11-21 05:06:31 -08:00
Chris Robinson 4c64fa1e4e Make VerifyContext return a context reference 2018-11-21 02:02:53 -08:00
Chris Robinson 8ec25da12e Rename a method to be clearer about its behavior 2018-11-21 00:40:41 -08:00
Chris Robinson ed06169569 Use RAII locks with the BackendLock 2018-11-20 23:42:21 -08:00
Chris Robinson d64d64d4a5 Use an enum class for AmbiLayout/Norm settings 2018-11-20 22:47:24 -08:00
Chris Robinson dc8ef8264a Try to improve alffplay underrun device time adjustment 2018-11-20 12:32:42 -08:00
Chris Robinson f3e01ae9d4 Use a normal vector for the source send properties 2018-11-20 12:25:15 -08:00
Chris Robinson a111254c26 Use C++ more in alListener.cpp 2018-11-20 11:17:54 -08:00
Chris Robinson f9e969a339 Use a standard mutex for the event callback lock 2018-11-20 10:55:57 -08:00
Chris Robinson 191ea90de3 Use atomic_flags and atomic<bools>s where appropriate 2018-11-20 10:45:01 -08:00
Chris Robinson 1e31ac469e Store effect slots as unique_ptrs 2018-11-20 10:01:20 -08:00
Chris Robinson 29558c091b Use C++ more in alAuxEffectSlot.cpp 2018-11-20 09:47:49 -08:00
Chris Robinson 1df42c4a0f Use a unique_ptr for the default effect slot 2018-11-20 05:01:08 -08:00
Chris Robinson 66fdd027d0 Use more C++ templates instead of DECL_TEMPLATE tricks 2018-11-20 03:35:41 -08:00
Chris Robinson c7472f8642 Use C++ templates instead of macro definitions more 2018-11-20 02:59:02 -08:00
Chris Robinson 16d0e79db7 Add compile-time traits for FmtType enum values 2018-11-20 02:42:49 -08:00
Chris Robinson 457d484872 Use C++ templates instead of macro-defined variations 2018-11-20 02:12:04 -08:00
Chris Robinson 5881cd2183 Add compile-time traits for DevFmtType enum values 2018-11-20 02:01:03 -08:00
Chris Robinson eb2937de84 Avoid another case of a variable named the same as a type 2018-11-19 23:48:45 -08:00
Chris Robinson 288dbbe886 Use default initialization for the reverb effect state 2018-11-19 22:48:56 -08:00
Chris Robinson 8995306203 Use proper templating for the modulator's Modulate function 2018-11-19 22:43:28 -08:00
Chris Robinson 8472a9d916 Use proper inheritence for the effect state objects 2018-11-19 22:34:26 -08:00
Chris Robinson 6ac84c7a5f Clean up the remaining effect struct member names 2018-11-19 21:04:50 -08:00
Chris Robinson 67da3850cb Use a normal vector for the echo buffer 2018-11-19 20:15:40 -08:00
Chris Robinson a346380e2b Clean up more effects' struct members 2018-11-19 19:57:30 -08:00
Chris Robinson 7f3584ec4c Fix the reverb buffer size calculation 2018-11-19 19:13:44 -08:00
Chris Robinson 4810def613 Use a normal vector for the chorus sample buffer 2018-11-19 19:08:30 -08:00
Chris Robinson ba33f6a7a4 Clean up the chorus/flanger struct members 2018-11-19 18:51:01 -08:00