6278 Commits

Author SHA1 Message Date
Chris Robinson
ba449d2b08 Pass a span to MixDirectHrtf instead of a pointer+size 2019-05-29 17:32:16 -07:00
Chris Robinson
d0f0a5fdca Separate two HRTF passes into two loops 2019-05-29 11:13:35 -07:00
Chris Robinson
ec3a6f8cde Use FloatBufferLine for the effect process method 2019-05-29 09:37:25 -07:00
Chris Robinson
b923eb1879 Use FloatBufferLine with the HRTF mixer functions 2019-05-28 22:44:50 -07:00
Chris Robinson
838e2bae80 Improve a couple algorithms 2019-05-28 17:18:22 -07:00
Chris Robinson
c80ee5b701 Use std::array for most mixing buffer arrays 2019-05-28 16:22:36 -07:00
Chris Robinson
7ce2b632f5 Simplify template type requirement checking 2019-05-28 08:49:53 -07:00
Chris Robinson
aa4b6afad6 Small cleanup for is_span and is_std_array 2019-05-27 22:01:59 -07:00
Chris Robinson
bac52e9537 Fix default constructor for static-sized spans 2019-05-27 17:48:19 -07:00
Chris Robinson
28fbb5178a Remove unnecessary assignment operators 2019-05-27 15:56:50 -07:00
Chris Robinson
aad49d666a Implement static-sized spans, and handle overload requirements
Note that span is specialized such that a static-sized span only has a single
data member, making it a suitable replacement for  Type (&arg)[Size]  style
variables/parameters.
2019-05-27 15:36:10 -07:00
Chris Robinson
f57fedec7f Get rid of the COUNTOF macro 2019-05-26 21:28:51 -07:00
Chris Robinson
f6f220025b Fix subspan 2019-05-26 21:00:17 -07:00
Chris Robinson
3007fbf5e5 Use a span for loading source samples 2019-05-26 20:05:12 -07:00
Chris Robinson
b0e12ccf71 Ensure a couple calls are constexpr 2019-05-26 15:57:17 -07:00
Chris Robinson
01f717ae59 Use SL_ANDROID_DATAFORMAT_PCM_EX for extended PCM info 2019-05-26 14:45:53 -07:00
Chris Robinson
20e3c78aef Use al::byte instead of char for generic data storage 2019-05-26 12:54:54 -07:00
Chris Robinson
63a130204c Add a few more methods to the span class 2019-05-26 12:05:43 -07:00
Chris Robinson
7cbf82afe4 Avoid a few more NUM_LINES assumptions 2019-05-26 11:34:17 -07:00
Chris Robinson
8ca97a7d9a Move a couple functions into its related class 2019-05-25 11:54:51 -07:00
Chris Robinson
5b5dee07b4 Remove a couple unused functions 2019-05-25 11:36:13 -07:00
Chris Robinson
ebf33b7c6b Avoid some uses of RESTRICT 2019-05-25 08:17:37 -07:00
Chris Robinson
219f818b16 Use al::byte for ADPCM decoders 2019-05-24 13:32:20 -07:00
Chris Robinson
b4fbc271d2 Add byte ops that take an integer-based rhs parameter 2019-05-24 13:30:40 -07:00
Chris Robinson
674ca3cf24 Move a couple table definitions to where they're used 2019-05-24 12:06:52 -07:00
Chris Robinson
1f45cc051a Fix some truncation warnings with MSVC 2019-05-24 06:47:24 -07:00
Chris Robinson
e90a6beaa2 Remove an unnecessary struct member 2019-05-24 06:25:18 -07:00
Chris Robinson
9c63bbd6ce Use raw bytes for the buffer data 2019-05-24 06:12:20 -07:00
Chris Robinson
1945b50834 Add a unique byte type for dealing with raw bytes 2019-05-24 06:11:21 -07:00
Chris Robinson
857473b6b0 Store the span extents as a pair of pointers 2019-05-24 04:55:38 -07:00
Chris Robinson
3a9caec72f Use a span for referencing the channel map to initialize 2019-05-23 13:30:16 -07:00
Chris Robinson
517b8158a7 Add a missing include 2019-05-23 08:30:02 -07:00
Chris Robinson
b46eca97a6 Use a span for resource data 2019-05-23 08:17:05 -07:00
Chris Robinson
a4af617532 Add a span class to act as a view to contiguous data 2019-05-23 08:15:02 -07:00
Chris Robinson
e3d6f3d988 Use a function to mark a source for updating 2019-05-23 05:06:26 -07:00
Chris Robinson
6708504026 Properly reverse the HRTF field order when loading it
And combine a couple arrays into an array structure
2019-05-22 11:07:12 -07:00
Chris Robinson
b48bab3394 Allow initializing splitter filters with constructors 2019-05-22 03:03:24 -07:00
Chris Robinson
657978c732 Don't change the format tag in MakeExtensible 2019-05-21 09:01:51 -07:00
Chris Robinson
d502397b37 Simplify the echo feedback loop 2019-05-20 22:07:41 -07:00
Chris Robinson
55845f316d Don't use coverage spread for the echo spread 2019-05-20 21:30:56 -07:00
Chris Robinson
6dbd488d13 Avoid unnecessary use of CalcAngleCoeffs 2019-05-20 21:16:13 -07:00
Chris Robinson
136caf0cb0 Don't attenuate the repeated sample
The mixing gain stepping will handle it
2019-05-19 00:53:39 -07:00
Chris Robinson
515a201e30 Restructure some voice fields 2019-05-17 20:39:28 -07:00
Chris Robinson
5ac19673db Fix a couple type truncation warnings with MSVC 2019-05-12 19:41:34 -07:00
Chris Robinson
8d437a5135 Use available buffer samples when pausing a source 2019-05-05 01:51:46 -07:00
Chris Robinson
0759ed7213 Properly mark a likely branch 2019-05-05 00:05:41 -07:00
Chris Robinson
0c09c8378b Set the device channel order from PulseAudio's channel map 2019-05-04 23:45:27 -07:00
Chris Robinson
42dfefbb0e Fix when PulseAudio channel configuration changes 2019-05-04 22:11:29 -07:00
Chris Robinson
1b11ca48dc Avoid unnecessary parsing for channel maps 2019-05-04 20:54:49 -07:00
Chris Robinson
31c29f1ea8 Use exceptions when opening and reseting the PulseAudio backend 2019-05-04 20:35:24 -07:00