Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't force a fade-in when resuming a paused source | Chris Robinson | 2017-06-09 | 1 | -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 calculation | Chris Robinson | 2017-05-27 | 2 | -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/limiter | Chris Robinson | 2017-05-27 | 2 | -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_limiter | Chris Robinson | 2017-05-25 | 1 | -5/+0 |
| | |||||
* | Add an option to dither 8- and 16-bit output | Chris Robinson | 2017-05-23 | 2 | -0/+7 |
| | |||||
* | Reduce the amount of variables that hold the same value | Chris Robinson | 2017-05-21 | 1 | -2/+2 |
| | |||||
* | Add a method to copy a filter's coefficients | Chris Robinson | 2017-05-21 | 2 | -0/+10 |
| | |||||
* | Use a macro to specify the decay target gain | Chris Robinson | 2017-05-21 | 1 | -0/+3 |
| | |||||
* | Apply more proper air absorption to the wet path | Chris Robinson | 2017-05-19 | 2 | -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_spatialize | Chris Robinson | 2017-05-11 | 1 | -6/+0 |
| | |||||
* | Reduce LIMITER_VALUE_MAX | Chris Robinson | 2017-05-09 | 1 | -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 integers | Chris Robinson | 2017-05-08 | 1 | -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 value | Chris Robinson | 2017-05-06 | 1 | -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 RMS | Chris Robinson | 2017-05-05 | 2 | -1/+20 |
| | |||||
* | Rename RollOff to Rolloff | Chris Robinson | 2017-05-05 | 3 | -6/+6 |
| | |||||
* | Start an extension to change the source's spatialize property | Chris Robinson | 2017-05-05 | 3 | -3/+31 |
| | |||||
* | Add a property to force source spatialization on or off | Chris Robinson | 2017-05-04 | 3 | -0/+10 |
| | |||||
* | Finalize AL_SOFT_source_resampler | Chris Robinson | 2017-05-03 | 1 | -13/+0 |
| | |||||
* | Rename Zero-Order Hold to Nearest | Chris Robinson | 2017-05-03 | 1 | -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 HRIRs | Chris Robinson | 2017-05-03 | 1 | -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 ALsizei | Chris Robinson | 2017-05-02 | 1 | -2/+2 |
| | |||||
* | Rename VOICE_IS_HRTF to VOICE_HAS_HRTF | Chris Robinson | 2017-05-02 | 1 | -1/+1 |
| | |||||
* | Rename 'moving' flag to 'fading' | Chris Robinson | 2017-05-02 | 2 | -7/+7 |
| | |||||
* | Set a voice as 'moving' if it starts/resumes at an offset | Chris Robinson | 2017-05-02 | 1 | -8/+21 |
| | |||||
* | Start an extension to toggle the output limiter | Chris Robinson | 2017-04-30 | 1 | -0/+5 |
| | |||||
* | 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 |
| |