Commit Graph

50 Commits

Author SHA1 Message Date
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 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 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 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 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 7b537c795b Don't pass the current thread to althrd_setname 2018-11-17 06:07:04 -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 02eae1123f Use iterators instead of indexed loops 2018-11-16 05:23:42 -08:00
Chris Robinson fc8191012a Cleanup some syntax in alc.cpp 2018-11-16 00:06:54 -08:00
Chris Robinson 7ef7477a13 Convert the PortAudio backend factory 2018-11-15 23:50:15 -08:00
Chris Robinson 78eb68a89f Convert the WinMM backend factory 2018-11-15 23:41:09 -08:00
Chris Robinson 2ca6119e0e Convert the DSound backend factory 2018-11-15 23:32:28 -08:00
Chris Robinson 5dc1956e18 Convert the QSA backend factory 2018-11-15 23:10:06 -08:00
Chris Robinson c78b42fb4e Convert the OSS backend factory 2018-11-15 23:02:26 -08:00
Chris Robinson 7884cec02b Convert the SndIO backend factory 2018-11-15 22:36:49 -08:00
Chris Robinson 271cfcf8e3 Convert the Solaris backend factory 2018-11-15 22:23:29 -08:00
Chris Robinson d73d01548d Convert the SDL2 backend factory 2018-11-15 22:15:10 -08:00
Chris Robinson 2a839e5762 Convert the JACK backend factory 2018-11-15 22:03:20 -08:00
Chris Robinson d4928d4e7d Convert the Wave Writer backend factory 2018-11-15 21:53:14 -08:00
Chris Robinson cc113ce6ab Convert the OpenSL backend factory 2018-11-15 21:42:17 -08:00
Chris Robinson 9d43b548cc Convert the ALSA backend factory 2018-11-15 21:33:44 -08:00
Chris Robinson ead830814b Convert the CoreAudio backend factory 2018-11-15 21:24:09 -08:00
Chris Robinson b1fb2e9e14 Convert the WASAPI backend factory 2018-11-15 21:14:20 -08:00
Chris Robinson e716c7b988 Convert the PulseAudio backend factory 2018-11-15 19:57:21 -08:00
Chris Robinson 4311c609e4 Update the loopback backend 2018-11-15 19:42:13 -08:00
Chris Robinson 49d8ac2537 Start a new backend factory API
Using proper class inheritance. Be aware this breaks all backends except null
(and loopback). They will be restored individually in due time.
2018-11-15 19:15:14 -08:00
Chris Robinson dc622b3182 Use std::isfinite from the cmath header 2018-11-15 06:48:52 -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 ab9f8162b8 Pass a normal const char* to EnumerateHrtf 2018-11-15 05:38:27 -08:00
Chris Robinson 1971d0f5c6 Use std::string instead of al_string for enumerating 2018-11-15 04:24:33 -08:00
Chris Robinson c4d3444a6d Use std::pow and std::log2 2018-11-14 17:03:04 -08:00
Chris Robinson 46301a087c Use C++ a bit more with alc.cpp 2018-11-14 06:17:47 -08:00
Chris Robinson 3021a426c0 Convert ALc.c to C++ 2018-11-14 04:15:44 -08:00