aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Store the source queue head in the voice to signify loopingChris Robinson2017-04-183-151/+144
| | | | | This removes the need to access a couple more source fields in the mixer, and also makes the looping and queue fields non-atomic.
* Store the source prop updates with the mixer voiceChris Robinson2017-04-173-102/+84
| | | | Also move its declaration and rename it for consistency.
* Close some gaps in enum valuesChris Robinson2017-04-161-2/+2
|
* Remove some unnecessary parenthesisChris Robinson2017-04-161-1/+1
|
* Allow increasing the maximum source limitChris Robinson2017-04-141-1/+1
| | | | | | | | 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.
* Use separate atomic macros for pointersChris Robinson2017-04-144-27/+21
|
* Use atomic flags for the thunk arrayChris Robinson2017-04-141-9/+12
|
* Use ALsizei for the fir4 resampler fractionChris Robinson2017-04-121-1/+1
|
* Store the ambisonic order separate from the channel enumChris Robinson2017-04-121-8/+5
|