Commit Graph

5433 Commits

Author SHA1 Message Date
Chris Robinson ab9f8162b8 Pass a normal const char* to EnumerateHrtf 2018-11-15 05:38:27 -08:00
Chris Robinson 9d9d626d99 Avoid some more uses of al_string 2018-11-15 05:33:02 -08:00
Chris Robinson 08bee7cb58 Search the right list for WASAPI name duplicates 2018-11-15 04:35:35 -08:00
Chris Robinson 17161131e5 Remove an unused extern inline 2018-11-15 04:28:47 -08:00
Chris Robinson 1971d0f5c6 Use std::string instead of al_string for enumerating 2018-11-15 04:24:33 -08:00
Chris Robinson d4f64b9e29 Use a C++ mutex with the device backend base 2018-11-15 03:49:59 -08:00
Chris Robinson b7daddb564 Try to clean up compat.h's macro block spaghetti a bit 2018-11-15 03:29:56 -08:00
Chris Robinson 8f771a0387 Convert alSource.c to C++ 2018-11-15 03:13:54 -08:00
Chris Robinson 27e7168ad4 Only declare the device backend stuff with C++ 2018-11-15 02:36:05 -08:00
Chris Robinson 1d2cc90175 Use C++ more in the OSS backend 2018-11-14 20:49:08 -08:00
Chris Robinson 83dec6b975 Use a C++ vector for enumerated OSS devices 2018-11-14 19:16:50 -08:00
Chris Robinson 3b1b029a75 Remove some now-unused function checks 2018-11-14 17:08:14 -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
Chris Robinson dfcb6d3e6d More clearly check if the buffer is not empty 2018-11-14 02:41:21 -08:00
Chris Robinson b15dcea4bb Move extern inline declarations to their own C source 2018-11-14 00:07:50 -08:00
Chris Robinson 6ae217d005 Fix some comment indentation 2018-11-13 23:26:42 -08:00
Chris Robinson c3ee206129 Use an anonymous namespace in the OSS backend 2018-11-13 23:23:46 -08:00
Chris Robinson 6510a44dba Use C++ more with the ALSA backend 2018-11-13 23:07:23 -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 5867c7b8c2 Don't bother inlining some functions 2018-11-13 19:45:26 -08:00
Chris Robinson 7088f4e34a Avoid calling through the vtable in the backends 2018-11-13 18:41:24 -08:00
Chris Robinson 0dfb805fa2 Use utf8_to_wstr to convert UTF-8 to wstring 2018-11-13 06:29:02 -08:00
Chris Robinson 6f635d3b1a Make ReadALConfig noexcept in C++ 2018-11-13 02:15:10 -08:00
Chris Robinson 2445bfd578 Convert the CoreAudio backend to C++ 2018-11-13 02:09:21 -08:00
Chris Robinson 0ff349a714 Convert the QSA backend to C++
This may very well not work, since there's no testing and my IDE is not able to
show real problems over the incompatibilities with ALSA headers.
2018-11-13 01:56:34 -08:00
Chris Robinson 09ea1d58f6 Convert the backend base to C++ 2018-11-13 01:39:42 -08:00
Chris Robinson 74d1337cc7 Convert the ALSA backend to C++ 2018-11-13 01:36:17 -08:00
Chris Robinson 1f34af4718 Convert the JACK backend to C++ 2018-11-13 01:20:15 -08:00
Chris Robinson 51a1310902 Convert the OpenSL backend to C++ 2018-11-13 00:33:25 -08:00
Chris Robinson c93b7ca0da Convert the OSS backend to C++ 2018-11-12 23:49:11 -08:00
Chris Robinson d9a47ab63c Convert the PortAudio backend to C++ 2018-11-12 23:32:11 -08:00
Chris Robinson dd9ccde055 Convert the SoundIO backend to C++ 2018-11-12 23:17:27 -08:00
Chris Robinson efae7bfb72 Convert the Solaris backend to C++ 2018-11-12 23:06:31 -08:00
Chris Robinson e7ab5053e4 Convert the SDL2 backend to C++ 2018-11-12 22:57:39 -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 c0f2858f3d Split Windows-specific SetRTPriority 2018-11-12 18:05:16 -08:00
Chris Robinson 4def2a60f2 Clean up helpers.cpp some 2018-11-11 23:13:11 -08:00
Chris Robinson c66db3cdf6 Use the correct type for __control87_2 2018-11-11 22:27:37 -08:00
Chris Robinson c23ea494ea Fix getting the process binary for FreeBSD or macOS 2018-11-11 22:19:32 -08:00
Chris Robinson 5848dab92d Make AmbDecConf::load noexcept
To ease the ovewrhead of destructors that call C (non-noexcept) functions.
2018-11-11 20:40:37 -08:00
Chris Robinson f8bda31c72 Remove unused wstr functions 2018-11-11 20:40:02 -08:00
Chris Robinson 51ed335833 Use C++ more with helpers.cpp 2018-11-11 19:17:40 -08:00
Chris Robinson 4793e5c4ae Use C++ for GetProcBinary 2018-11-11 16:09:24 -08:00
Chris Robinson 58a71a1a00 Convert helpers.c to C++ 2018-11-11 14:56:25 -08:00
Chris Robinson d3c4bab7bb Use a vector in the wave backend 2018-11-11 03:29:43 -08:00
Chris Robinson 2db82bea6f Define the examples' common library earlier 2018-11-11 00:47:57 -08:00
Chris Robinson f99b16daa9 Use C++ threads in the null and wave backends 2018-11-11 00:33:04 -08:00