Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement a limiter on the device output | Chris Robinson | 2017-04-26 | 1 | -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 happy | Chris Robinson | 2017-04-21 | 2 | -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 enums | Chris Robinson | 2017-04-21 | 1 | -4/+4 |
| | |||||
* | Add the ability to change the source resampler | Chris Robinson | 2017-04-21 | 1 | -0/+22 |
| | |||||
* | Add a method to enumerate resamplers | Chris Robinson | 2017-04-21 | 3 | -0/+105 |
| | |||||
* | Store the resampler as part of the source | Chris Robinson | 2017-04-21 | 3 | -14/+19 |
| | |||||
* | Make the default resampler a variable | Chris Robinson | 2017-04-20 | 1 | -2/+1 |
| | |||||
* | Missed a raw atomic variable access | Chris Robinson | 2017-04-20 | 1 | -2/+3 |
| | |||||
* | Make the buffer list next pointer atomic | Chris Robinson | 2017-04-19 | 2 | -28/+34 |
| | |||||
* | Allocate a new context's voices after updating the device params | Chris Robinson | 2017-04-19 | 1 | -0/+1 |
| | |||||
* | Use a different way to get the size of structs with flexible array members | Chris Robinson | 2017-04-18 | 3 | -7/+9 |
| | |||||
* | Store the source queue head in the voice to signify looping | Chris Robinson | 2017-04-18 | 3 | -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 voice | Chris Robinson | 2017-04-17 | 3 | -102/+84 |
| | | | | Also move its declaration and rename it for consistency. | ||||
* | Close some gaps in enum values | Chris Robinson | 2017-04-16 | 1 | -2/+2 |
| | |||||
* | Remove some unnecessary parenthesis | Chris Robinson | 2017-04-16 | 1 | -1/+1 |
| | |||||
* | Allow increasing the maximum source limit | Chris Robinson | 2017-04-14 | 1 | -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 pointers | Chris Robinson | 2017-04-14 | 4 | -27/+21 |
| | |||||
* | Use atomic flags for the thunk array | Chris Robinson | 2017-04-14 | 1 | -9/+12 |
| | |||||
* | Use ALsizei for the fir4 resampler fraction | Chris Robinson | 2017-04-12 | 1 | -1/+1 |
| | |||||
* | Store the ambisonic order separate from the channel enum | Chris Robinson | 2017-04-12 | 1 | -8/+5 |
| | |||||
* | Add a sample converter | Chris Robinson | 2017-04-10 | 1 | -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 API | Chris Robinson | 2017-04-09 | 1 | -3/+0 |
| | |||||
* | Handle the source offset fraction as an ALsizei | Chris Robinson | 2017-04-08 | 2 | -9/+11 |
| | |||||
* | Pre-compute the sinc4 resampler coefficient table | Chris Robinson | 2017-04-08 | 1 | -4/+3 |
| | |||||
* | Reference count HRTFs and unload them when unused | Chris Robinson | 2017-04-06 | 1 | -1/+1 |
| | |||||
* | Load HRTF files as needed | Chris Robinson | 2017-04-05 | 1 | -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 entry | Chris Robinson | 2017-04-05 | 1 | -5/+6 |
| | |||||
* | Make sure the mix is done after setting the looping property | Chris Robinson | 2017-04-02 | 1 | -0/+9 |
| | |||||
* | Remove a couple more uses of BYTE3 | Chris Robinson | 2017-03-31 | 1 | -2/+0 |
| | |||||
* | Convert float samples to integer using a power-of-2 multiple | Chris Robinson | 2017-03-31 | 1 | -6/+8 |
| | |||||
* | Remove the (u)byte3 sample formats | Chris Robinson | 2017-03-31 | 3 | -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 divisor | Chris Robinson | 2017-03-31 | 1 | -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 list | Chris Robinson | 2017-03-27 | 3 | -46/+77 |
| | |||||
* | Fix handling of the PropsClean flags | Chris Robinson | 2017-03-23 | 2 | -2/+2 |
| | |||||
* | Use an atomic flag to mark auxiliary effect slot updates | Chris Robinson | 2017-03-23 | 2 | -6/+6 |
| | |||||
* | Add some comments for ALsource functions | Chris Robinson | 2017-03-23 | 1 | -1/+13 |
| | |||||
* | Use an atomic flag to test if a source needs to update | Chris Robinson | 2017-03-20 | 2 | -8/+8 |
| | |||||
* | Break up a function and move the code to where it's called | Chris Robinson | 2017-03-19 | 1 | -176/+169 |
| | |||||
* | Don't defer source state or offset changes | Chris Robinson | 2017-03-19 | 4 | -53/+19 |
| | |||||
* | Avoid doing sequential load for the source state | Chris Robinson | 2017-03-12 | 1 | -10/+8 |
| | |||||
* | Store the HRIR coeff pointer and delays directly in MixHrtfParams | Chris Robinson | 2017-03-12 | 2 | -4/+6 |
| | |||||
* | Rework HRTF coefficient fading | Chris Robinson | 2017-03-11 | 2 | -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 bitflag | Chris Robinson | 2017-03-11 | 2 | -7/+5 |
| | |||||
* | Allocate as many channels for DirectHrtfState as needed | Chris Robinson | 2017-03-11 | 1 | -2/+4 |
| | |||||
* | Dynamically allocate the device's HRTF state | Chris Robinson | 2017-03-10 | 1 | -13/+14 |
| | |||||
* | Implement NFC filters for Ambisonic rendering | Chris Robinson | 2017-03-10 | 3 | -1/+27 |
| | | | | | | | | | | | | | | NFC filters currently only work when rendering to ambisonic buffers, which includes HQ rendering and ambisonic output. There are two new config options: 'decoder/nfc' (default on) enables or disables use of NFC filters globally, and 'decoder/nfc-ref-delay' (default 0) specifies the reference delay parameter for NFC-HOA rendering with ambisonic output (a value of 0 disables NFC). Currently, NFC filters rely on having an appropriate value set for AL_METERS_PER_UNIT to get the correct scaling. HQ rendering uses the averaged speaker distances as a control/reference, and currently doesn't correct for individual speaker distances (if the speakers are all equidistant, this is fine, otherwise per-speaker correction should be done as well). | ||||
* | Move ALvoice declaration to alu.h | Chris Robinson | 2017-03-09 | 2 | -55/+55 |
| | |||||
* | Remove unnecessary atomic members | Chris Robinson | 2017-03-08 | 6 | -141/+135 |
| | |||||
* | Remove an unnecessary variable | Chris Robinson | 2017-03-07 | 1 | -3/+2 |
| | |||||
* | Check that a source is actually playing before setting paused | Chris Robinson | 2017-03-07 | 1 | -28/+35 |
| | | | | | Also slightly refactor setting playing state when the device is disconnected or there's no buffers to play. |