aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add a sample converterChris Robinson2017-04-101-0/+10
| | | | | | | | | | 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.
* Convert the CoreAudio backend to the updated backend APIChris Robinson2017-04-091-3/+0
|
* Handle the source offset fraction as an ALsizeiChris Robinson2017-04-082-9/+11
|
* Pre-compute the sinc4 resampler coefficient tableChris Robinson2017-04-081-4/+3
|
* Reference count HRTFs and unload them when unusedChris Robinson2017-04-061-1/+1
|
* Load HRTF files as neededChris Robinson2017-04-051-1/+1
| | | | | Currently only applies to external files, rather than embedded datasets. Also, HRTFs aren't unloaded after being loaded, until library shutdown.
* Store the loaded hrtf entry container in the enumerated hrtf entryChris Robinson2017-04-051-5/+6
|
* Make sure the mix is done after setting the looping propertyChris Robinson2017-04-021-0/+9
|
* Remove a couple more uses of BYTE3Chris Robinson2017-03-311-2/+0
|
* Convert float samples to integer using a power-of-2 multipleChris Robinson2017-03-311-6/+8
|
* Remove the (u)byte3 sample formatsChris Robinson2017-03-313-117/+1
| | | | | They're not accessible since the removal of the buffer_samples extension, and were kind of clunky to work with as 24-bit packed values.
* Convert integer samples to float using a power-of-2 divisorChris Robinson2017-03-311-7/+7
| | | | | | | 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).
* Use an array of pointers for effects instead of a linked listChris Robinson2017-03-273-46/+77
|
* Fix handling of the PropsClean flagsChris Robinson2017-03-232-2/+2
|
* Use an atomic flag to mark auxiliary effect slot updatesChris Robinson2017-03-232-6/+6
|
* Add some comments for ALsource functionsChris Robinson2017-03-231-1/+13
|
* Use an atomic flag to test if a source needs to updateChris Robinson2017-03-202-8/+8
|
* Break up a function and move the code to where it's calledChris Robinson2017-03-191-176/+169
|
* Don't defer source state or offset changesChris Robinson2017-03-194-53/+19
|
* Avoid doing sequential load for the source stateChris Robinson2017-03-121-10/+8
|
* Store the HRIR coeff pointer and delays directly in MixHrtfParamsChris Robinson2017-03-122-4/+6
|
* Rework HRTF coefficient fadingChris Robinson2017-03-112-11/+9
| | | | | | | | | | | | | | | This improves fading between HRIRs as sources pan around. In particular, it improves the issue with individual coefficients having various rounding errors in the stepping values, as well as issues with interpolating delay values. It does this by doing two mixing passes for each source. First using the last coefficients that fade to silence, and then again using the new coefficients that fade from silence. When added together, it creates a linear fade from one to the other. Additionally, the gain is applied separately so the individual coefficients don't step with rounding errors. Although this does increase CPU cost since it's doing two mixes per source, each mix is a bit cheaper now since the stepping is simplified to a single gain value, and the overall quality is improved.
* Make the voice's 'moving' state a bitflagChris Robinson2017-03-112-7/+5
|
* Allocate as many channels for DirectHrtfState as neededChris Robinson2017-03-111-2/+4
|
* Dynamically allocate the device's HRTF stateChris Robinson2017-03-101-13/+14
|