Chris Robinson
81aed2ea01
Use a normal vector for buffer sublists
2018-11-18 22:31:51 -08:00
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
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
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
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
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
1fae8c16a8
Convert threads.c to C++
...
Also vastly simplify and remove related code.
2018-11-17 05:31:29 -08:00
Chris Robinson
3bbfd0c099
Fix compilation with MSVC
2018-11-16 23:01:40 -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
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
Chris Robinson
fedd5ebbea
Convert event.c to C++
2018-11-16 06:00:28 -08:00
Chris Robinson
5cdd28c736
Convert sample_cvt.c to C++
2018-11-16 05:24:15 -08:00
Chris Robinson
7c93308771
Remove checks for functions that always exist
...
They're part of C++11 and available on the testing systems. If some system has
trouble, switching to proper C++ calls should fix it.
2018-11-15 17:53:05 -08:00
Chris Robinson
a3b644374b
Add a missing cast for MSVC
2018-11-15 06:48:00 -08:00
Chris Robinson
245b7ff0b4
Remove the unused al_string API
2018-11-15 06:32:01 -08:00
Chris Robinson
7b3a2085aa
Use a regular char* for the device's name
2018-11-15 06:23:01 -08:00
Chris Robinson
8f771a0387
Convert alSource.c to C++
2018-11-15 03:13:54 -08:00
Chris Robinson
46301a087c
Use C++ a bit more with alc.cpp
2018-11-14 06:17:47 -08:00
Chris Robinson
b15dcea4bb
Move extern inline declarations to their own C source
2018-11-14 00:07:50 -08:00
Chris Robinson
a5f68c2121
Avoid using ATOMIC_FLAG
...
Although it cant potentially be better than a regular atomic, it presents
compatibility issues when non-C11 atomics are mixed with C++
2018-11-13 20:26:32 -08:00
Chris Robinson
a6d780574d
Make the enumerated HRTF entry name a char*
...
Would ideally be a std::string with the HRTF name itself, but they're still
seen in C code.
2018-11-12 22:26:12 -08:00
Chris Robinson
d4d0b1fdd4
Use a regular char* for the HRTF string name
2018-11-12 19:02:38 -08:00
Chris Robinson
51ed335833
Use C++ more with helpers.cpp
2018-11-11 19:17:40 -08:00
Chris Robinson
34c836c490
Disambiguate operation order
2018-11-08 14:25:05 -08:00
Chris Robinson
d71e50f7f7
Avoid using out parameters
2018-11-08 14:09:13 -08:00
Chris Robinson
4eed3e9236
Move static functions to an anonymous namespace
2018-11-08 03:31:42 -08:00
Chris Robinson
de275408fa
Make a const array constexpr
2018-10-31 13:31:14 -07:00