Chris Robinson
3142fb30ea
Remove some unnecessary function attributes
...
The alloc_size was wrong anyway since the function parameter takes the number
of objects to be allocated and the attribute declares which is the number of
bytes. The assume_aligned is unnecessary since the function is inlined and
al_malloc/al_calloc already have appropriate attributes for the compiler to
see.
2021-01-23 03:27:18 -08:00
Chris Robinson
6f87cc92fb
Set the correct default buffer bits/format
2021-01-22 11:55:37 -08:00
Chris Robinson
f576a35363
Don't bother checking for std::aligned_alloc
2021-01-22 08:53:44 -08:00
Chris Robinson
1dcc6361fe
Fix setting the correct standards flag
2021-01-22 08:42:02 -08:00
Chris Robinson
f9f8b52a40
Ensure the correct standard is set for cmake checks
2021-01-22 08:17:45 -08:00
Chris Robinson
b5f1601c7f
Remove an unnecessary semicolon
2021-01-22 06:05:50 -08:00
Chris Robinson
b3dc99a467
Fix __cplusplus value check
2021-01-22 06:00:36 -08:00
Chris Robinson
cff3693387
Use if constexpr when possible
2021-01-22 05:50:27 -08:00
Chris Robinson
da59ad5105
Make PopCount and CountTrailingZeros more standard-like
2021-01-22 04:58:42 -08:00
Chris Robinson
5ff5fd8ecc
Use a standard bitset for bitfield flags
2021-01-22 00:00:10 -08:00
Chris Robinson
5729e1004d
Make the endian test more C++-like
2021-01-21 23:21:18 -08:00
Chris Robinson
87dbeed853
Update apt before installing dependencies
2021-01-21 09:15:18 -08:00
Chris Robinson
fb6585cf18
Fix handling paused devices with the wave writer backend
2021-01-21 06:51:29 -08:00
Chris Robinson
19adb622ef
Simplify a division
...
The division opcode typically also generates the remainder, making the result
of x%y free with x/y.
2021-01-21 06:27:11 -08:00
Chris Robinson
db4de2b56a
Avoid declaring some variables multiple times
2021-01-21 06:25:50 -08:00
Chris Robinson
20f5e7c1fa
Avoid global constexpr arrays
2021-01-21 04:03:30 -08:00
Chris Robinson
92c653e5f0
Update ChangeLog
2021-01-20 17:47:36 -08:00
Chris Robinson
1c649943f7
Revert "Print the build results after CI"
...
This reverts commit e1e0809253b6a361a5d9862d887de2557bbe9742.
2021-01-20 06:33:11 -08:00
Chris Robinson
e1e0809253
Print the build results after CI
2021-01-20 04:16:06 -08:00
Chris Robinson
32e0d92c51
Avoid extra copies/work when reading HRTF data
2021-01-20 01:26:55 -08:00
Chris Robinson
13698362f1
Avoid explicitly searching for the WindowsSDK
...
It's causing problems with various setups. So instead we'll have to assume some
things for Windows (namely that winmm exists, and if dsound isn't in DXSDK_DIR,
it needs to be in the compiler's default paths to be usable).
2021-01-19 17:19:44 -08:00
Chris Robinson
c3380d4201
Remove constexpr from a function
...
Various versions of GCC have a problem with it, and it doesn't really add much
benefit anyway.
2021-01-17 23:39:33 -08:00
Chris Robinson
8ebf146c72
First try at using GitHub Actions
2021-01-17 23:09:42 -08:00
Chris Robinson
229bf45e24
Avoid calling readAdvance in a loop
2021-01-17 03:17:46 -08:00
Chris Robinson
855a8c0cd9
Don't assume the ring buffer's read vector is the next writable space
...
This is untrue since the ring buffer leaves one element unwritten, so there's
one extra element to be written once a readable element is read.
2021-01-15 18:18:07 -08:00
Chris Robinson
8c4adfd752
Use a span instead of passing a vector by reference
2021-01-11 17:39:57 -08:00
Chris Robinson
1f01311ee3
Make sure proper names are used for querying PulseAudio info
2021-01-10 13:34:05 -08:00
kcat
3348d3ce15
Merge pull request #515 from ilya-fedin/pulse-nullptr-default
...
Pass nullptr to pulse for default device
2021-01-10 11:25:05 -08:00
Ilya Fedin
a30d3ad803
Pass nullptr to pulse for default device
2021-01-10 16:23:08 +04:00
Chris Robinson
b99adb623d
Remove the invalid noexcept specification
2021-01-08 19:23:17 -08:00
Chris Robinson
89906453ea
Quickly fade out samples of a stopping voice
...
Rather than linearly fading out the mix over the mixing update, logarithmically
fade out the post-resampled samples by approx -60dB per millisecond.
2021-01-08 18:54:46 -08:00
Chris Robinson
537fd6d0a1
Avoid dereferencing the end iterator
2021-01-08 18:51:25 -08:00
Chris Robinson
1f24f5caa1
Ensure the endian test is constexpr
2021-01-06 18:04:04 -08:00
Chris Robinson
948ae3bc7e
Avoid duplicating an inline template function
2021-01-06 17:52:50 -08:00
Chris Robinson
a9ac165c39
Properly trace the new HRTF delay for the B-Format decoder
2021-01-06 17:19:10 -08:00
Chris Robinson
292de73c75
Use a template to read integers with endian awareness
2021-01-06 17:10:03 -08:00
Chris Robinson
04cd0bc576
Return non-const from the resampler function
2021-01-02 17:37:09 -08:00
Chris Robinson
1f51de9983
Make optional trivially destructible if the stored type is
2021-01-02 14:24:53 -08:00
Chris Robinson
d6495b35df
Fix comment typo
2021-01-01 15:35:46 -08:00
Chris Robinson
1327aca9d7
Don't use templates unnecessarily
2021-01-01 15:35:14 -08:00
Chris Robinson
87a862199d
Make FPUCtl methods noexcept
2020-12-31 18:23:59 -08:00
Chris Robinson
20ef8bf390
Move cpu_caps and fpu_ctrl to core
2020-12-31 16:47:12 -08:00
Chris Robinson
002c506296
Remove an unnecessary include
2020-12-31 13:15:38 -08:00
Chris Robinson
f2b7a063ef
Add NEON-enhanced FIR loops for convolution and UHJ
2020-12-31 13:01:17 -08:00
Chris Robinson
9d354f721c
Assume run-time NEON support if detected by cmake
2020-12-31 11:42:02 -08:00
Chris Robinson
78f3d8fcd8
Check for SSE and NEON earlier
2020-12-31 11:16:44 -08:00
Chris Robinson
ec7e7c9174
Avoid ugly reinterpret_casts with offsetof
2020-12-29 09:57:08 -08:00
Chris Robinson
96942d7968
Combine multiple functions into one
2020-12-28 08:37:49 -08:00
Chris Robinson
aae115c35a
Return an intrusive_ptr from EffectStateFactory::create
2020-12-28 08:04:23 -08:00
Chris Robinson
15e05fcef8
Workaround a GCC 5 constexpr function bug
2020-12-28 03:36:26 -08:00