Chris Robinson
649bf575e2
Declare that a couple arrays are aligned
2017-08-09 14:57:01 -07:00
Chris Robinson
ad3c4b81e2
Add experimental support for 24-bit, dual-ear HRTFs
...
Currently makehrtf only handles 24-bit output, not dual-ear, and only when
given the --experimental switch. Files produced this way will not be guaranteed
future compatibility. When the mhr format is also updated with multi-distance
measurements, the experimental switch can go away.
2017-08-08 20:30:26 -07:00
Chris Robinson
530002e168
Avoid re-selecting the direct HRTF mix function
2017-08-07 01:38:26 -07:00
Chris Robinson
8a735d0ba9
Add a front-stablizer config option for surround sound modes
...
This improves a stereo (front-left + front-right) sound "image" by generating a
front-center channel signal. Done correctly, it helps reduce the comb effects
and phase errors associated with using only two speakers to simulate center
sounds.
Note that it shouldn't be used if the front-center channel is already included
in the positional audio mix (the dialog effect is okay). In general, it may
actually be better to exclude the front-center channel from the positional
audio mix and use this to generate front-center output.
2017-07-31 23:49:48 -07:00
Chris Robinson
88c0d22e7c
Don't bother returning the IR length for B-Format decoding
2017-07-31 01:20:42 -07:00
Chris Robinson
e5431bbef7
Print an error if the input channel isn't in the device
...
Rather than the other way around, if a device channel isn't in the channel map.
2017-07-31 01:11:36 -07:00
Chris Robinson
de51ba088e
Update default 5.1 and 6.1 coefficients to exclude front-center
...
Not all speaker kits have a front-center speaker capable of outputing full-
range content. It's best to err on the side of caution and not include front-
center for normal positional sound by default, leaving it instead for the
dedicated dialog effect.
2017-07-30 23:39:06 -07:00
Chris Robinson
12db67f548
Cleanup output write functions
2017-07-27 19:07:02 -07:00
Chris Robinson
e25ba747e6
Remove unused macros
2017-07-25 17:42:16 -07:00
Chris Robinson
75841642bf
Update makehrtf to use a larger FFT by default
...
Also fixes DC offset removal and increases the max IR size.
2017-07-25 16:17:46 -07:00
Chris Robinson
82a990e08e
Downgrade some ERRs to TRACEs
...
These don't exist outside OSSv4, e.g. with OSS/Free, padsp, or aoss, so no need
to be concerned.
2017-07-23 16:43:39 -07:00
Chris Robinson
5ab4e584ee
Make sure OSS device files exist before adding them
2017-07-23 16:38:54 -07:00
Chris Robinson
f91445029d
Fix default effect initialization
2017-07-19 18:26:46 -07:00
Chris Robinson
fea74124c8
Add an all-pass filter that replicates the band splitter's phase shift
2017-07-19 02:48:01 -07:00
Chris Robinson
0135ddc2e5
Scale the source volume by +3dB for a full spread
...
This effectively turns a full spread source into an ambient response,
preventing such sources from being unexpectedly quiet.
2017-07-18 22:15:32 -07:00
Chris Robinson
c484935542
Apply the output buffer offset before writing to it
2017-07-15 23:13:08 -07:00
Chris Robinson
ff696bc1fe
Set the float PCM GUID for wave files only when outputting float
2017-07-15 01:45:48 -07:00
Chris Robinson
8fa3f6da64
Add the default auxiliary slot to the active slot array
2017-07-13 23:13:02 -07:00
Chris Robinson
249afde5f9
Initialize the default effect after device update
2017-07-13 22:35:37 -07:00
Chris Robinson
a535169bbd
Use macros to set and restore the mixer FPU mode
2017-07-13 22:30:39 -07:00
Chris Robinson
22d77b87a3
Store the default effect slot in the context
2017-07-13 21:44:25 -07:00
Chris Robinson
8a0d1e5191
Store the QSA backend's ExtraData in the wrapper struct
2017-06-29 17:38:38 -07:00
Chris Robinson
e8ce8924d1
Use sqrtf for single-precision square roots
2017-06-29 10:28:37 -07:00
Chris Robinson
ec13cf6c9c
Add casts to silence MSVC
2017-06-29 10:28:22 -07:00
Chris Robinson
a69d608a1e
Define a backup log2f if the compiler doesn't have it
2017-06-29 10:11:31 -07:00
Chris Robinson
7cadbebe9f
Calculate the converter stepping value using floating point
2017-06-28 10:17:36 -07:00
Chris Robinson
e9a7218a06
Remove the fastf2u conversion function
2017-06-27 07:25:08 -07:00
Chris Robinson
8f2bbc434c
Use a macro to apply NFC filtered mixes instead of a loop
2017-06-26 11:19:27 -07:00
Chris Robinson
b13fead555
Round the converter's stepping value
2017-06-26 11:04:23 -07:00
Chris Robinson
2f2d941edb
Trace the message name in the message handler loop
2017-06-26 08:57:29 -07:00
Chris Robinson
740e7d979c
Convert all input samples in the loop
...
Instead of potentially leaving 1 sample that requires another loop iteration.
2017-06-26 08:55:22 -07:00
Chris Robinson
55c329b462
Clean up some messy rounding code
2017-06-26 06:54:45 -07:00
Chris Robinson
5d5eff7502
Ensure the mmdevapi capture buffer is at least 100ms
2017-06-26 06:14:11 -07:00
Chris Robinson
1deb8b6160
Clean up some loop variables
2017-06-25 05:42:35 -07:00
Chris Robinson
c465718ddd
Use the bsinc resampler for the converter
2017-06-25 04:07:06 -07:00
Chris Robinson
d1bb04d588
Improve traces for the mmdevapi capture conversions
2017-06-23 09:54:26 -07:00
Chris Robinson
d70a98fe03
Use the correct destination channel offset
2017-06-23 08:25:47 -07:00
Chris Robinson
9d01ac440d
Don't report any output samples for no input samples
2017-06-23 08:13:42 -07:00
Chris Robinson
44a940d8d6
Forward Sample_ALuint to Sample_ALint
2017-06-23 05:34:43 -07:00
Chris Robinson
d1077795de
Stop conversion when no more source samples are available
2017-06-22 15:07:24 -07:00
Chris Robinson
31b02e044f
Trace the capture converter formats for mmdevapi
2017-06-22 13:58:32 -07:00
Chris Robinson
552d3a85af
Workaround log2f missing on Android
2017-06-21 23:05:11 -07:00
Chris Robinson
6fcbb7c738
Remove an unnecessary variable
2017-06-21 11:34:26 -07:00
Chris Robinson
e09468cdca
Trace if dithering is enabled
2017-06-19 00:17:11 -07:00
Chris Robinson
0a361fa9e2
"Convert" the QSA backend to the new API
...
I say "convert" because it takes the lazy way and essentially just embeds the
wrappers into the backend. It's done this way because I lack the means to check
any changes, even syntactically. This also means the device's ExtraData field
is still needed.
However, this does mean all the backends are now using the new API. Code
related to the old interface can now be removed.
2017-06-18 03:07:02 -07:00
Chris Robinson
2b013fc54e
Make the dithering depth configurable
2017-06-17 23:09:51 -07:00
Chris Robinson
e3a825b37c
Apply dither separately from output
2017-06-17 02:42:01 -07:00
Chris Robinson
9fc01934c2
Use helpers to get data from byte streams
2017-06-16 22:58:13 -07:00
Chris Robinson
879b79740f
Round the B-Format HRTF response where the multiple is defined
2017-06-16 19:00:00 -07:00
Chris Robinson
d4f3490a88
Limit device buffer based on PulseAudio's tlength
...
Unfortunately PulseAudio has a habit of limiting tlength, and trying to
calculate the device's buffer length to write regardless of tlength could
result in some amount always being writable.
2017-06-15 21:39:09 -07:00
rdb
39e4756b37
Implement GetProcPath for FreeBSD
2017-06-09 15:19:03 +02:00
Chris Robinson
b4aea294c3
Calculate chorus and flanger mod delays separately from feedback
2017-06-07 12:42:54 -07:00
Chris Robinson
10ff6cba9c
Make the late lines' delay the delay average for modulation
...
Similar to the recent chorus and flanger changes, the modulation delay now
swings between -n to +n, where n is less than the delay length. This brings up
a slight issue with the linear interpolation, as modff doesn't produce the
correct fraction value for interpolation (it's inverted, with 0 being closer to
the next sample and 1 being closer to the base). So it's using nearest
interpolation for now.
2017-06-07 10:39:19 -07:00
Chris Robinson
e893211b65
Restrict ClampedDist to RefDistance for invalid distance attenuation
2017-05-30 05:13:54 -07:00
Chris Robinson
6d4adc6ad6
Use an RMS limit of -3dB for the output limiter
2017-05-29 03:38:27 -07:00
Chris Robinson
a79e8f3d95
Use peak limiting rather than RMS detection
2017-05-27 22:47:40 -07:00
Chris Robinson
e9505b164e
Fix source sends' initial HF absorption and decay calculation
...
The HF absorption is applied given the source distance, as relative to the
source's immediate environment, with additional absorption being applied given
the room/reverb environment. This does double up the amount of absorption
compared to the dry path, but it can be assumed the initial reflections travel
a longer distance.
2017-05-27 22:33:40 -07:00
Chris Robinson
c51df897db
Use normal air absorption for the sends
...
Applies just for the normal air absorption which uses the air absorption
factor, not the automated decay applied when WetGainAuto is enabled.
2017-05-27 03:40:52 -07:00
Chris Robinson
c4ef7399f8
Add a new compressor/limiter
...
This is just for the output limiter right now, but in the future can be used
for the compressor EFX effect. The parameters are also hardcoded, but can be
made configurable after 1.18.
2017-05-27 03:36:34 -07:00
Chris Robinson
653f0a1405
Fix handling chorus and flanger LFO displacement offset
...
The phase offset is modulo-wrapped rather than masked, so it's best to avoid
negative offsets.
2017-05-26 09:09:35 -07:00
Chris Robinson
2b14c1d623
Properly handle the chorus and flanger LFOs
...
The effects' specified delay is the average delay time, meaning the delay
offset should move between -n and +n relative to the delay, where n <= delay.
2017-05-26 08:52:07 -07:00
Chris Robinson
db90dbe9f2
Finalize ALC_SOFT_output_limiter
2017-05-25 04:16:07 -07:00
Chris Robinson
9d4f601a8a
Apply distance compensation separately
2017-05-25 03:24:35 -07:00
Chris Robinson
2266fb76b9
Add a config option to specify custom ALSA devices
2017-05-23 18:12:45 -07:00
Chris Robinson
e6be113903
Add an option to dither 8- and 16-bit output
2017-05-23 00:35:22 -07:00
Chris Robinson
49e5c53591
Reduce the amount of variables that hold the same value
2017-05-21 03:47:52 -07:00
Chris Robinson
95ea3fdd05
Avoid calculating the filter coefficients multiple times
2017-05-21 03:38:19 -07:00
Chris Robinson
5691dceb38
Add a method to copy a filter's coefficients
2017-05-21 03:31:44 -07:00
Chris Robinson
edcdc1dae8
Avoid unnecessary doubles
2017-05-21 02:42:44 -07:00
Chris Robinson
0b2467ed54
Use a macro to specify the decay target gain
2017-05-21 00:01:39 -07:00
Chris Robinson
c234b25ac7
Use more correct doppler shift calculations
2017-05-20 03:28:40 -07:00
Chris Robinson
492050b816
Restore spec-defined cone behavior for auxiliary sends
2017-05-20 02:22:11 -07:00
Chris Robinson
a306407b67
Apply more proper air absorption to the wet path
...
This properly accounts for the room rolloff factor for normal air absorption
(which makes it none by default, like distance attenuation), and uses the
reverb's decay time, decay hf ratio, decay hf limit, and room air absorption
properties to calculate an initial hf decay with the WetGainAuto flag. This
mirrors the behavior of the initial distance decay.
2017-05-19 23:13:39 -07:00
Chris Robinson
efd797a6f6
Reorganize some code to have fewer temporaries
2017-05-17 22:49:34 -07:00
Chris Robinson
a49e2ebbc5
Add an env var to specify a default pulse device
...
Some apps don't allow selecting an audio device, and due to problems with KDE,
PulseAudio isn't allowed to move the stream after being created by default.
2017-05-16 16:50:43 -07:00
Chris Robinson
154e53b911
Reduce the main reverb filter gain limit to match the rest
2017-05-16 13:23:16 -07:00
Chris Robinson
98392fbe90
Limit the dry and wet path filter gains to -60dB
2017-05-15 17:20:09 -07:00
Chris Robinson
fecf26318a
Improve distance-related absorption and decay attenuation
2017-05-15 17:13:05 -07:00
Chris Robinson
2aa620e58f
Make reverb delay line structs use interleaved floats
2017-05-15 00:30:47 -07:00
Chris Robinson
b2760baa64
Make the reverb's early and late feedback lines interleaved
2017-05-14 23:28:22 -07:00
Chris Robinson
cc1b774837
Don't enable NFC for a 0 reference delay
2017-05-14 18:50:22 -07:00
Chris Robinson
7cbce6806b
Update a couple comments about the reverb modulation
2017-05-13 16:08:45 -07:00
Chris Robinson
0b66b2bbe7
Replace 4 separate all-passes with one vector all-pass
...
Each 4 related all-passes now share a structure with one delay line, which uses
an interleaved sample history. Also fixes some potential rounding problems for
delay lines with interleaved samples.
2017-05-13 15:45:05 -07:00
Chris Robinson
87d4710bc4
Apply reverb modulation to the late feedback lines
...
This seems to be more in-line with the intended behavior, to allow build-up and
overlap within the reverb decay, rather than a pitch-shift on input.
Unfortunately there's no readily available implementation of this reverb model
that includes modulation to compare with, so a low depth coefficient is used to
keep it very subtle.
2017-05-12 20:53:14 -07:00
Chris Robinson
d456c799fd
Remove the 0.5 gain on the reverb output
...
Turns out to be unnecessary, as it reduced the volume below what other reverb
implementations provide with the same presets.
2017-05-11 23:26:29 -07:00
Chris Robinson
685dc24299
Restore the previous reverb B2A and A2B matrices
...
Also, untranspose the A2B matrix.
2017-05-11 21:48:47 -07:00
Chris Robinson
ef58a8f205
Log whether the output limiter is enabled or disabled
2017-05-11 16:29:05 -07:00
Chris Robinson
748dfb1526
Finalize AL_SOFT_source_spatialize
2017-05-11 14:38:04 -07:00
Chris Robinson
a6f6533a28
Update ALC_OUTPUT_LIMITER_SOFT to handle ALC_DONT_CARE_SOFT
...
Essentially just adding a comment about it. Since we default to on, the
behavior already fit.
2017-05-11 11:04:25 -07:00
Chris Robinson
a2c25378a9
Reduce LIMITER_VALUE_MAX
...
The previous value couldn't actually be expressed as a float and got rounded up
to the next whole number value, leaving the potential for an overrun in the
squared sum.
2017-05-09 11:56:03 -07:00
Chris Robinson
4a4442ad91
Store the output limiter values as fixed-point integers
...
This helps keep the squared sum stable over larger updates, also avoiding the
need to keep recalculating it.
2017-05-08 16:23:16 -07:00
Chris Robinson
f880f67049
Update reverb conversion matrices and output gain
2017-05-08 13:57:31 -07:00
Chris Robinson
0dabe6398f
Apply attenuation when downmixing multi-channel sounds for panning
2017-05-07 18:28:43 -07:00
Chris Robinson
074e4496ba
Calculate the output limiter gain using the RMS
2017-05-05 07:38:26 -07:00
Chris Robinson
db6f14748c
Rename RollOff to Rolloff
2017-05-05 04:54:07 -07:00
Chris Robinson
d82e3be8f7
Increase the HRTF transition to 128 samples
2017-05-05 04:54:07 -07:00
alexey.lysiuk
17dfaca43d
Implement cross-platform embedding of HRTF data
2017-05-05 14:30:06 +03:00
Chris Robinson
9c9ad2f60a
Start an extension to change the source's spatialize property
2017-05-05 02:41:34 -07:00
Chris Robinson
b639bc9913
Add a property to force source spatialization on or off
2017-05-04 12:27:10 -07:00
Chris Robinson
7829ad8fc9
Handle attenuated sources in CalcPanningAndFilters
2017-05-04 11:09:45 -07:00
Chris Robinson
23bf3d3959
Calculate the multi-channel panning in a separate function
2017-05-04 04:35:53 -07:00
Chris Robinson
ab1cca729f
Finalize AL_SOFT_source_resampler
2017-05-03 04:33:38 -07:00
Chris Robinson
444e9563b3
Add a mixing function to blend HRIRs
...
This is a bit more efficient than calling the normal HRTF mixing function
twice, and helps solve the problem of the values generated from convolution not
being consistent with the new HRIR.
2017-05-03 03:29:21 -07:00
Chris Robinson
4e5c4b8e01
Add a slight bit of attenuation to the reverb output
2017-05-02 15:55:58 -07:00
Chris Robinson
66f9640787
Remove a duplicate check
2017-05-02 07:34:28 -07:00
Chris Robinson
53c3d48fe0
Change some ALuint parameters to ALsizei
2017-05-02 04:54:59 -07:00
Chris Robinson
1e5334176e
Rename VOICE_IS_HRTF to VOICE_HAS_HRTF
2017-05-02 04:25:08 -07:00
Chris Robinson
2f8d597f4e
Rename 'moving' flag to 'fading'
2017-05-02 04:09:01 -07:00
Chris Robinson
f1a249b47a
Reimplement bilinear interpolation between HRIRs
...
Some data sets are just too sparse, having noticeably few measurements to
properly handle slowly panning sources. Although not perfect, bilinearly
interpolating the HRIR measurements improves the positional accuracy.
2017-05-01 15:46:25 -07:00
Chris Robinson
8d50b72d8f
Allow querying the output limiter state
2017-04-30 08:54:49 -07:00
Chris Robinson
fc2afa1eaa
Start an extension to toggle the output limiter
2017-04-30 04:21:48 -07:00
Chris Robinson
9767f4f9c3
Don't do more reverb samples than there are to fade.
...
This avoids having to clamp the fade value when incrementing it.
2017-04-28 10:25:22 -07:00
Chris Robinson
dc25370063
Fade HRTF coefficients over 64 samples at most
...
This greatly improves HRTF performance since the dual-mix only applies to the
64-sample coefficient transition. So rather than doubling the full mix, it only
doubles 64 samples out of the full mix.
2017-04-28 10:05:57 -07:00
Chris Robinson
bf138fb4ea
Combine mostly duplicate functions
2017-04-27 19:23:42 -07:00
Chris Robinson
5dc7265ad3
Properly update the delay line offsets when fading is done
2017-04-27 18:54:33 -07:00
Chris Robinson
55d9988f3f
Write directly to the output for HRTF
2017-04-27 06:35:53 -07:00
Chris Robinson
ca5c732261
Implement a limiter on the device output
...
This reduces the output volume when the mixed samples extend outside of -1,+1,
to prevent excessive clipping. It can reduce the volume by -80dB in 50ms, and
increase it by +80dB in 1s (it will not go below -80dB or above 0dB).
2017-04-26 18:38:09 -07:00
Chris Robinson
12fb0404c1
Reverb code update
...
This update modifies the reverb in numerous ways. The 3-series, 4-parallel
all-pass is replaced with a Gerzon vector all-pass. The vector all-pass is also
applied to the early reflections, to help with the initial diffusion in the
late reverb. The late reverb filter and feedback attenuation has been replaced
with a dual first-order equalization filter, which controls the low and high
frequencies with individual low-pass/high-shelf and high-pass/low-shelf filters
with gain control.
Additionally, delay lines now have the ability to blend the output between two
offsets, to help smooth out the transition for when the delay changes (without
such, it could result in undesirable clicks and pops).
2017-04-26 02:07:51 -07:00
Chris Robinson
ad782c0000
Skip mixing the fade out step when starting silent
...
Unfortunately it can't skip mixing the fade in when going to silence because
the history needs to be up to date.
2017-04-25 22:10:27 -07:00
Chris Robinson
a0a41921fc
Remove const from _Atomic vars to make Clang happy
...
Clang does not allow using C11's atomic_load on const _Atomic variables.
Previously it just disabled use of C11 atomics if atomic_load didn't work on a
const _Atomic variable, but I think I'd prefer to have Clang use C11 atomics
for the added features (more explicit memory ordering) even if it means a few
instances of breaking const.
2017-04-21 16:58:55 -07:00
Chris Robinson
d2d5f1d7bd
Add the ability to change the source resampler
2017-04-21 15:48:39 -07:00
Chris Robinson
44f026220f
Correctly enable the ambisonic upsampler for HOA output
2017-04-21 13:26:29 -07:00
Chris Robinson
b59359f80f
Add a method to enumerate resamplers
2017-04-21 04:15:08 -07:00
Chris Robinson
26b49c54af
Store the resampler as part of the source
2017-04-21 00:06:40 -07:00
Chris Robinson
1e8ea59564
Make the default resampler a variable
2017-04-20 23:21:46 -07:00
Chris Robinson
7776ebcedc
Try NEON mixers before SSE
2017-04-20 20:58:32 -07:00
Chris Robinson
5dcbb8db38
Make the buffer list next pointer atomic
2017-04-19 19:54:17 -07:00
Chris Robinson
fbb5295f13
Fix a mixed-sign-comparison warning on MSVC
2017-04-19 15:17:55 -07:00
Chris Robinson
0407285c53
Allocate a new context's voices after updating the device params
2017-04-19 12:34:45 -07:00
Chris Robinson
f1be335486
Check for the upsampler to determine if HRTF uses HOA
2017-04-18 17:39:10 -07:00
Chris Robinson
55011d4bfd
Use a different way to get the size of structs with flexible array members
2017-04-18 14:11:15 -07:00
Chris Robinson
de62ab97e9
Store the source queue head in the voice to signify looping
...
This removes the need to access a couple more source fields in the mixer, and
also makes the looping and queue fields non-atomic.
2017-04-18 00:58:33 -07:00
Chris Robinson
45d52f7124
Remove unnecessary functions in the JACK backend
2017-04-17 21:31:20 -07:00
Chris Robinson
14bc7baeb7
Store the source prop updates with the mixer voice
...
Also move its declaration and rename it for consistency.
2017-04-17 21:16:01 -07:00
Chris Robinson
6d3973f965
Trace unhandled device reset attributes
2017-04-16 16:21:11 -07:00
Chris Robinson
8f1a968d79
Correctly handle the attribute array size for alcGetInteger64vSOFT
2017-04-15 20:10:32 -07:00
Chris Robinson
fca83263f4
Implement capture support in the OpenSL backend
2017-04-15 18:08:52 -07:00
Chris Robinson
d9bf4f7620
Allow increasing the maximum source limit
...
If the requested number of mono and stereo sources exceeds 256, the source
limit will be expanded. Any config file setting overrides this. If the device
is reset to have fewer sources than are currently allocated, excess sources
will remain and be usable as normal, but no more can be generated until enough
are delated to go back below the limit.
2017-04-14 23:50:49 -07:00
Chris Robinson
f94fa5d5cf
Use separate atomic macros for pointers
2017-04-14 17:47:55 -07:00
Chris Robinson
6476f3277a
Mark some pointers with restrict
2017-04-13 11:48:43 -07:00
Chris Robinson
24c172bb96
Use ALsizei for the fir4 resampler fraction
2017-04-12 22:45:54 -07:00
Chris Robinson
684823ebc4
Select NEON when available before SSE
2017-04-12 22:44:16 -07:00
Chris Robinson
901804d724
Store the ambisonic order separate from the channel enum
2017-04-12 18:26:07 -07:00
Chris Robinson
46046f9caa
Remove an unnecessary variable
2017-04-11 12:06:57 -07:00
Chris Robinson
05531fbee4
Use the correct channel conversion functions
2017-04-11 11:47:23 -07:00
Chris Robinson
78d5492d2c
Use the converters to enable mmdevapi capture
2017-04-11 09:41:23 -07:00
Chris Robinson
bcdd1cee10
Add a mono<->stereo converter
...
This converter always outputs floats, and uses energy-preserving scaling.
2017-04-11 07:25:55 -07:00
Chris Robinson
caae349fdc
Update the given source pointer in the sample converter
2017-04-10 13:40:45 -07:00
Chris Robinson
cc79cb803a
Reduce the size of the temp input buffer
2017-04-10 09:31:25 -07:00
Chris Robinson
8a7bc9ab4f
Trace the capture device format
2017-04-10 09:28:25 -07:00
Chris Robinson
6cc69c8d94
Add a sample converter
...
This is intended to do conversions for interleaved samples, and supports
changing from one DevFmtType to another as well as resampling. It does not
handle remixing channels.
The mixer is more optimized to use the resampling functions directly. However,
this should prove useful for recording with certain backends that won't do the
conversion themselves.
2017-04-10 09:26:06 -07:00
Chris Robinson
81527cdbdd
Convert the CoreAudio backend to the updated backend API
2017-04-09 11:21:02 -07:00
Chris Robinson
aef774a7a0
Handle the source offset fraction as an ALsizei
2017-04-08 14:29:08 -07:00
Chris Robinson
319d097198
Pre-compute the sinc4 resampler coefficient table
2017-04-08 13:43:19 -07:00
Chris Robinson
5ef7d8fe62
Clean up some formatting
2017-04-08 12:27:30 -07:00
Chris Robinson
1f64f9d016
Try to write the full configured buffer length with PulseAudio
...
This basically ignores tlength even if it's smaller than what was requested. It
keeps up-to-date with minreq changes too now, in case that happens.
2017-04-08 10:01:04 -07:00
Chris Robinson
f1a5b6b668
Overwrite the old search path with the new one
2017-04-08 03:00:53 -07:00
Chris Robinson
5e9f5693a4
Combine a couple loops
2017-04-07 14:56:23 -07:00
Chris Robinson
7fd88086f6
Make sure malloc succeeded for 'delays'
2017-04-07 09:49:06 -07:00
Chris Robinson
8f2e4d46ec
Store the HRTF coeffs as a stereo pair
...
This will make it easier to handle HRTF data sets that have separate left and
right ear responses. Will need an mhr version update to take advantage of that.
2017-04-07 08:46:50 -07:00
Chris Robinson
e267f6b88e
Don't explicitly restore the old HRTF when initializing panning
...
Otherwise it won't store the name in the device.
2017-04-07 08:02:13 -07:00
Chris Robinson
b551291840
Allocate temp storage for delays when loading HRTFs
2017-04-07 06:40:42 -07:00
Chris Robinson
36f7dda1ca
Remove another reference to the sinc8 resampler
2017-04-07 03:57:40 -07:00
Chris Robinson
70a097bf59
Clean up a comment
2017-04-07 03:21:40 -07:00
Chris Robinson
338d61f907
Reference count HRTFs and unload them when unused
2017-04-06 13:00:29 -07:00
Chris Robinson
94f514ae5a
Load embedded HRTF entries as-needed
2017-04-06 01:35:09 -07:00
Chris Robinson
37f666fbab
Fix an incorrect message
2017-04-05 12:46:02 -07:00
Chris Robinson
2eaa10fc21
Load HRTF files as needed
...
Currently only applies to external files, rather than embedded datasets. Also,
HRTFs aren't unloaded after being loaded, until library shutdown.
2017-04-05 12:27:30 -07:00
Chris Robinson
f76dea0c03
Store the loaded hrtf entry container in the enumerated hrtf entry
2017-04-05 11:29:58 -07:00
Chris Robinson
e7ca61e8b5
Store the HRTF's filename separate from the entry storage
2017-04-05 07:09:16 -07:00
Chris Robinson
26144ca9df
Rename al_string_* functions to alstr_*
2017-04-04 06:58:53 -07:00
Chris Robinson
d52752a3fe
Recognize %-encoded characters for config section names
2017-04-01 06:07:14 -07:00
Chris Robinson
497d078f50
Remove a couple unused macros
2017-04-01 03:04:15 -07:00
Chris Robinson
13d7d6fe95
Don't rely on sizeof being the offset to a struct's unsized array
2017-04-01 03:00:24 -07:00
Chris Robinson
52112b0b8d
Constify a variable
2017-04-01 02:38:44 -07:00
Chris Robinson
1ef916a54b
Make a pointer restrict and assume aligned
2017-04-01 01:08:18 -07:00
Chris Robinson
5f245d5950
Avoid some unnecessary string reallocation
2017-03-31 23:22:06 -07:00
Chris Robinson
90c005bbec
Convert float samples to integer using a power-of-2 multiple
2017-03-31 09:11:28 -07:00
Chris Robinson
ac8b4aa5f6
Convert integer samples to float using a power-of-2 divisor
...
This should cut down on unnecessary quantization noise (however minor) for 8-
and 16-bit samples. Unfortunately a power-of-2 multiple can't be used as easily
for converting float samples to integer, due to integer types having a non-
power-of-2 maximum amplitude (it'd require more per-sample clamping).
2017-03-31 06:54:46 -07:00
Chris Robinson
9fb07101dc
Load HRTF coefficients as pre-normalized floats
2017-03-31 04:59:09 -07:00
Chris Robinson
2a8970368f
Combine some HRTF loading code
2017-03-31 03:45:26 -07:00
Chris Robinson
7dc3fb98ab
Use the correct types' sizes for HRTF storage
2017-03-31 02:15:24 -07:00
Chris Robinson
facd8ab109
Make ReleaseContext return if any contexts still remain
2017-03-28 05:33:43 -07:00
Chris Robinson
70aefa75e2
Use an array of pointers for effects instead of a linked list
2017-03-27 23:16:23 -07:00
Chris Robinson
9f4e47d7be
Fix HRTF interpolated gain calculation
2017-03-26 02:44:34 -07:00
Chris Robinson
56428cdb74
Use a loop to apply NFC filters
2017-03-25 23:55:44 -07:00
Chris Robinson
5c37eca2c5
Use ALsizei for more index lookups
2017-03-24 14:35:25 -07:00
Chris Robinson
9ca92be0b8
Properly calculate the echo damping
2017-03-24 14:08:04 -07:00
Chris Robinson
b062d50bf1
Fix setting Ambi formats for loopback devices
2017-03-21 16:40:23 -07:00
Chris Robinson
cdfe0d8f5a
Use an atomic flag to test if a source needs to update
2017-03-20 21:25:39 -07:00
Chris Robinson
42bcf0870d
Make DataPosInt an ALsizei
2017-03-20 19:22:41 -07:00
Chris Robinson
d7d9ad806a
Use proper bools for boolean states
2017-03-20 16:53:41 -07:00
Chris Robinson
ecfa1dcb6f
Don't defer source state or offset changes
2017-03-19 13:48:40 -07:00
Chris Robinson
66b86d43be
Fix alcGetInteger64vSOFT to handle ambisonic attributes
2017-03-18 14:33:40 -07:00
Chris Robinson
7bf7cda467
Replace a couple ALuint with ALsizei
2017-03-17 15:45:39 -07:00
Chris Robinson
a209edb5ee
Fix NFC filter to set the correct center frequency
2017-03-16 19:58:21 -07:00
Chris Robinson
8f5cab5608
Increase the filter slope to -12dB/octave
2017-03-16 11:25:28 -07:00
Chris Robinson
32d521d79c
Check usability of MixHrtf_Neon before MixHrtf_SSE
2017-03-14 19:16:59 -07:00
Chris Robinson
6d565ff1fd
Remove a couple unneeded typedefs
2017-03-14 13:10:34 -07:00
Chris Robinson
7b4645f5f8
Store the HRIR coeff pointer and delays directly in MixHrtfParams
2017-03-12 06:58:27 -07:00