Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace some freq_mult variable names with f0norm | Chris Robinson | 2018-01-13 | 1 | -9/+27 |
| | | | | | | The latter is a bit more descriptive as f0 is often used to denote the reference frequency of a filter, so f0norm indicates the normalized reference frequency (ref_freq / sample_rate). | ||||
* | Use a more normal vtable setup for filter methods | Chris Robinson | 2018-01-13 | 1 | -19/+23 |
| | |||||
* | Avoid fixed-PATH_MAX-size buffers | Chris Robinson | 2018-01-13 | 1 | -8/+0 |
| | | | | | Windows still needs to use MAX_PATH in a couple places, but that macro's guaranteed there. | ||||
* | Move the FORCE_ALIGN macro to threads.h | Chris Robinson | 2018-01-12 | 1 | -10/+0 |
| | |||||
* | Make a couple functions inline | Chris Robinson | 2018-01-12 | 1 | -7/+3 |
| | |||||
* | Define a function where it's used | Chris Robinson | 2018-01-11 | 1 | -18/+0 |
| | |||||
* | Move logging declarations to a separate header | Chris Robinson | 2018-01-11 | 1 | -57/+2 |
| | |||||
* | Avoid including alMain.h in ringbuffer.c | Chris Robinson | 2018-01-11 | 1 | -14/+0 |
| | |||||
* | Move a forward declaration to the others | Chris Robinson | 2018-01-11 | 1 | -2/+1 |
| | |||||
* | Clean up the EffectList members and make the list size known | Chris Robinson | 2018-01-11 | 1 | -13/+13 |
| | |||||
* | Move the EffectList array to alEffect.c/h | Chris Robinson | 2018-01-11 | 2 | -8/+9 |
| | |||||
* | Move the ringbuffer declarations to a separate header | Chris Robinson | 2018-01-11 | 1 | -20/+0 |
| | | | | And rename alcRing.c to ringbuffer.c for consistency. | ||||
* | Move the FPU mode declarations to a separate header | Chris Robinson | 2018-01-11 | 1 | -32/+0 |
| | | | | Also don't use inheritance with FPUCtl. | ||||
* | Move the config function declarations to their own header | Chris Robinson | 2018-01-11 | 1 | -10/+0 |
| | | | | And rename alcConfig.c to alconfig.c for consistency. | ||||
* | Move the CPU capability flags to a separate header | Chris Robinson | 2018-01-11 | 1 | -11/+0 |
| | |||||
* | Move the compressor/limiter declarations to their own header | Chris Robinson | 2018-01-11 | 1 | -28/+0 |
| | |||||
* | Move the polymorphic/inheritance macros to a separate header | Chris Robinson | 2018-01-11 | 1 | -94/+1 |
| | |||||
* | Move some HRTF structures to hrtf.h | Chris Robinson | 2018-01-11 | 1 | -30/+2 |
| | |||||
* | Avoid using macros to access anonymous structures | Chris Robinson | 2018-01-11 | 2 | -58/+70 |
| | |||||
* | Don't return whether the bsinc filter cuts or not | Chris Robinson | 2018-01-10 | 1 | -1/+1 |
| | |||||
* | Use one macro to handle both resample padding sizes | Chris Robinson | 2018-01-09 | 1 | -6/+5 |
| | |||||
* | Combine the chorus and flanger processing functions | Chris Robinson | 2018-01-09 | 1 | -10/+1 |
| | | | | | | | Given that they're nearly identical, it should be relatively simple to use the same effect state to process either of them, similar to the reverbs. The big differences seem to be the delay range (much shorter with flanger) and the defaults. | ||||
* | Rename the device's temp buffer storage to be more generic | Chris Robinson | 2018-01-09 | 1 | -5/+2 |
| | |||||
* | Remove standard reverb specific processing functions | Chris Robinson | 2018-01-07 | 1 | -1/+0 |
| | |||||
* | Move the UNEXPECTED macro to the main header and rename it | Chris Robinson | 2018-01-07 | 1 | -0/+8 |
| | |||||
* | Use a separate function to get the cubic value | Chris Robinson | 2018-01-07 | 1 | -0/+9 |
| | |||||
* | Remove the sinc4 table | Chris Robinson | 2018-01-07 | 1 | -5/+0 |
| | |||||
* | Replace the sinc4 resampler with cubic | Chris Robinson | 2018-01-07 | 1 | -4/+0 |
| | | | | | | | Turns out the C version of the cubic resampler is just slightly faster than even the SSE3 version of the FIR4 resampler. This is likely due to not using a 64KB random-access lookup table along with unaligned loads, both offseting the gains from SSE. | ||||
* | Make MixSamples non-static global | Chris Robinson | 2017-12-17 | 1 | -1/+2 |
| | |||||
* | Allow storing multiple buffers in a ALbufferlistitem | Chris Robinson | 2017-12-15 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | This will be to allow buffer layering, multiple buffers of the same format and sample rate that are mixed together prior to resampling, filtering, and panning. This will allow composing sounds from individual components that can be swapped around on different invocations (e.g. layer SoundA and SoundB on one instance and SoundA and SoundC on a different instance for a slightly different sound, then just SoundA for a third instance, and so on). The longest buffer within the list item determines the length of the list item. More work needs to be done to fully support it, namely the ability to specity multiple buffers to layer for static and streaming sources. Also the behavior of loop points for layered static sources should be worked out. Should also consider allowing each layer to have a sample offset. | ||||
* | Add queries to get the source offset with the device clock | Chris Robinson | 2017-12-03 | 1 | -0/+2 |
| | |||||
* | Avoid a separate function to query ambisonic mode support | Chris Robinson | 2017-09-27 | 1 | -12/+8 |
| | | | | | | Now FuMa and ACN channel orders are required, as are FuMa, SN3D, and N3D normalization schemes. An integer query (alcGetIntegerv) is added for the maximum ambisonic order. | ||||
* | Re-update effect slots when context properties change | Chris Robinson | 2017-09-27 | 4 | -10/+16 |
| | | | | | Also keep all free property update structs together in the context instead of per-object. | ||||
* | Don't update context and listener props unnecessarily | Chris Robinson | 2017-09-27 | 2 | -0/+4 |
| | |||||
* | Update the context state properties separately | Chris Robinson | 2017-09-27 | 3 | -8/+18 |
| | | | | | | | | | | | | | The context state properties are less likely to change compared to the listener state, and future changes may prefer more infrequent updates to the context state. Note that this puts the MetersPerUnit in as a context state, even though it's handled through the listener functions. Considering the infrequency that it's updated at (generally set just once for the context's lifetime), it makes more sense to put it there than with the more frequently updated listener properties. The aforementioned future changes would also prefer MetersPerUnit to not be updated unnecessarily. | ||||
* | Add an option to ignore the app's speed of sound for reverb decay | Chris Robinson | 2017-09-22 | 2 | -1/+3 |
| | |||||
* | Pass the context to the auxiliary effect update method | Chris Robinson | 2017-09-21 | 1 | -2/+2 |
| | |||||
* | Manually save and restore the FPU rounding mode on Windows | Chris Robinson | 2017-09-19 | 1 | -0/+3 |
| | | | | | | | Apparently there is a bug with at least MinGW-W64 where fegetenv and fesetenv do not properly save and restore the FPU rounding mode, resulting in the rounding mode remaining as round-to-zero after certain function calls. I do not know if this also affects MSVC, but better safe than sorry for now. | ||||
* | Add a higher quality bsinc resampler using 24 sample points | Chris Robinson | 2017-08-27 | 1 | -5/+10 |
| | | | | | | | This improves the transition width, allowing more of the higher frequencies remain audible. It would be preferrable to have an upper limit of 32 points instead of 48, to reduce the overall table size and the CPU cost for down- sampling. | ||||
* | Rename the bsinc resampler to bsinc12 | Chris Robinson | 2017-08-25 | 1 | -2/+2 |
| | |||||
* | Pass the filter entry to apply to resample_fir4 | Chris Robinson | 2017-08-18 | 1 | -3/+2 |
| | |||||
* | Store the sinc4 table in the filter state | Chris Robinson | 2017-08-16 | 1 | -7/+11 |
| | | | | Also rename the resampler functions to remove the unnecessary '32' token. | ||||
* | Simplify bsinc filter storage in the filter state | Chris Robinson | 2017-08-16 | 1 | -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 struct | Chris Robinson | 2017-08-15 | 1 | -2/+1 |
| | |||||
* | Avoid re-selecting the direct HRTF mix function | Chris Robinson | 2017-08-07 | 1 | -0/+2 |
| | |||||
* | Add a front-stablizer config option for surround sound modes | Chris Robinson | 2017-07-31 | 1 | -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 it | Chris Robinson | 2017-07-15 | 1 | -1/+1 |
| | |||||
* | Use macros to set and restore the mixer FPU mode | Chris Robinson | 2017-07-13 | 1 | -0/+11 |
| | |||||
* | Store the default effect slot in the context | Chris Robinson | 2017-07-13 | 2 | -8/+5 |
| | |||||
* | Store the QSA backend's ExtraData in the wrapper struct | Chris Robinson | 2017-06-29 | 1 | -2/+0 |
| |