aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
Commit message (Collapse)AuthorAgeFilesLines
* Store the sinc4 table in the filter stateChris Robinson2017-08-161-7/+11
| | | | Also rename the resampler functions to remove the unnecessary '32' token.
* Simplify bsinc filter storage in the filter stateChris Robinson2017-08-161-6/+5
| | | | | | | Rather than storing individual pointers to filter, scale delta, phase delta, and scale phase delta entries, per phase index, the new table layout makes it trivial to access the per-phase filter and delta entries given the base offset and coefficient count.
* Keep bsinc info together in a structChris Robinson2017-08-151-2/+1
|
* Avoid re-selecting the direct HRTF mix functionChris Robinson2017-08-071-0/+2
|
* Add a front-stablizer config option for surround sound modesChris Robinson2017-07-311-0/+3
| | | | | | | | | | | | 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.
* Apply the output buffer offset before writing to itChris Robinson2017-07-151-1/+1
|
* Use macros to set and restore the mixer FPU modeChris Robinson2017-07-132-4/+14
|
* Store the default effect slot in the contextChris Robinson2017-07-132-8/+5
|
* Store the QSA backend's ExtraData in the wrapper structChris Robinson2017-06-291-2/+0
|
* Remove the fastf2u conversion functionChris Robinson2017-06-271-5/+0
|
* Clean up some messy rounding codeChris Robinson2017-06-261-0/+18
|
* Use the bsinc resampler for the converterChris Robinson2017-06-251-0/+2
|
* "Convert" the QSA backend to the new APIChris Robinson2017-06-181-19/+0
| | | | | | | | | | 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.
* Make the dithering depth configurableChris Robinson2017-06-171-1/+1
|
* Don't force a fade-in when resuming a paused sourceChris Robinson2017-06-091-11/+1
| | | | | | | | This needs to be handled more automatically by the mixer to work correctly. Otherwise, requiring a property update on resume can put the source into a playing state with the mixer never playing it, due to not having valid mixing parameters and the mixing parameters not getting calculated because no updates are specified by the app (and forcing an update can break deferred updates).
* Fix source sends' initial HF absorption and decay calculationChris Robinson2017-05-272-2/+2
| | | | | | | | 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.
* Add a new compressor/limiterChris Robinson2017-05-272-24/+30
| | | | | | 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.
* Finalize ALC_SOFT_output_limiterChris Robinson2017-05-251-5/+0
|
* Add an option to dither 8- and 16-bit outputChris Robinson2017-05-232-0/+7
|
* Reduce the amount of variables that hold the same valueChris Robinson2017-05-211-2/+2
|
* Add a method to copy a filter's coefficientsChris Robinson2017-05-212-0/+10
|
* Use a macro to specify the decay target gainChris Robinson2017-05-211-0/+3
|
* Apply more proper air absorption to the wet pathChris Robinson2017-05-192-0/+4
| | | | | | | | 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.
* Finalize AL_SOFT_source_spatializeChris Robinson2017-05-111-6/+0
|
* Reduce LIMITER_VALUE_MAXChris Robinson2017-05-091-1/+1
| | | | | | 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.
* Store the output limiter values as fixed-point integersChris Robinson2017-05-081-2/+6
| | | | | This helps keep the squared sum stable over larger updates, also avoiding the need to keep recalculating it.
* Update AL_SOURCE_SPATIALIZE_SOFT valueChris Robinson2017-05-061-1/+1
| | | | | | Though it didn't strictly clash since it was for a different component (global state vs source property), 0x1213 was used by AL_RESAMPLER_NAME_SOFT. Probably best to avoid duplicate property values regardless.
* Calculate the output limiter gain using the RMSChris Robinson2017-05-052-1/+20
|
* Rename RollOff to RolloffChris Robinson2017-05-053-6/+6
|
* Start an extension to change the source's spatialize propertyChris Robinson2017-05-053-3/+31
|
* Add a property to force source spatialization on or offChris Robinson2017-05-043-0/+10
|
* Finalize AL_SOFT_source_resamplerChris Robinson2017-05-031-13/+0
|
* Rename Zero-Order Hold to NearestChris Robinson2017-05-031-1/+1
| | | | | | A bit of a misnomer now since "Nearest" implies rounding (i.e. when the sample offset is >= .5, it should pick the next sample being closer in time), but that adds unnecessary complications.
* Add a mixing function to blend HRIRsChris Robinson2017-05-031-0/+5
| | | | | | 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.
* Change some ALuint parameters to ALsizeiChris Robinson2017-05-021-2/+2
|
* Rename VOICE_IS_HRTF to VOICE_HAS_HRTFChris Robinson2017-05-021-1/+1
|
* Rename 'moving' flag to 'fading'Chris Robinson2017-05-022-7/+7
|
* Set a voice as 'moving' if it starts/resumes at an offsetChris Robinson2017-05-021-8/+21
|
* Start an extension to toggle the output limiterChris Robinson2017-04-301-0/+5
|
* Implement a limiter on the device outputChris Robinson2017-04-261-0/+2
| | | | | | 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).
* Remove const from _Atomic vars to make Clang happyChris Robinson2017-04-212-6/+26
| | | | | | | | 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.
* Use more sensible values for the source resampler enumsChris Robinson2017-04-211-4/+4
|
* Add the ability to change the source resamplerChris Robinson2017-04-211-0/+22
|
* Add a method to enumerate resamplersChris Robinson2017-04-213-0/+105
|
* Store the resampler as part of the sourceChris Robinson2017-04-213-14/+19
|
* Make the default resampler a variableChris Robinson2017-04-201-2/+1
|
* Missed a raw atomic variable accessChris Robinson2017-04-201-2/+3
|
* Make the buffer list next pointer atomicChris Robinson2017-04-192-28/+34
|
* Allocate a new context's voices after updating the device paramsChris Robinson2017-04-191-0/+1
|
* Use a different way to get the size of structs with flexible array membersChris Robinson2017-04-183-7/+9
|