Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use unsigned int shifts for device flags | Chris Robinson | 2016-09-07 | 1 | -5/+5 |
| | |||||
* | Make the SelectMixer function sharable | Chris Robinson | 2016-09-06 | 1 | -0/+2 |
| | |||||
* | Remove use of DECL_CONST | Chris Robinson | 2016-09-06 | 2 | -10/+8 |
| | | | | | No idea if it was really gaining us anything, but removing it fixes a crash I was getting with libs built with Clang. | ||||
* | Use a predefined identity matrix | Chris Robinson | 2016-09-05 | 1 | -0/+1 |
| | |||||
* | Rename MatrixMixerFunc to RowMixerFunc | Chris Robinson | 2016-09-02 | 1 | -3/+3 |
| | |||||
* | Add a query for the maximum source gain limit | Chris Robinson | 2016-08-28 | 1 | -0/+5 |
| | |||||
* | Clamp the maximum mixing gain boost to 16 | Chris Robinson | 2016-08-27 | 1 | -0/+2 |
| | | | | | | The combined source and listener gains now can't exceed a multiplier of 16 (~24dB). This is to avoid mixes getting out of control with large volume boosts, which reduces the effective precision given by floating-point. | ||||
* | Allow sources to play while alcSuspendContext is in effect | Chris Robinson | 2016-08-26 | 1 | -1/+7 |
| | | | | | | | | | | | | | | This appears to be how Creative's Windows drivers handle it, and is necessary for at least the Windows version of UT2k4 (otherwise it tries to play a source while suspended, checks and sees it's stopped, then kills it before it's given a chance to start playing). Consequently, the internal properties it gets mixed with are determined by what the source properties are at the time of the play call, and the listener properties at the time of the suspend call. This does not change alDeferUpdatesSOFT, which will still hold the play state change until alProcessUpdatesSOFT. | ||||
* | Properly defer effect slot changes | Chris Robinson | 2016-08-25 | 1 | -0/+3 |
| | | | | | | | | Note that this now also causes all playing sources to update when an effect slot is updated. This is a bit wasteful, as it should only need to re-update sources that are using the effect slot (and only when a relevant property is changed), but it's good enough. Especially with deferring since all playing sources are going to get updated on the process call anyway. | ||||
* | Add a ref count to ALeffectState | Chris Robinson | 2016-08-25 | 2 | -0/+8 |
| | | | | | This is mostly just reorganizing the effects to call the Construct method which initializes the ref count. | ||||
* | Combine related members into a struct | Chris Robinson | 2016-08-24 | 1 | -10/+12 |
| | |||||
* | Don't pass the context's distance model as the source's | Chris Robinson | 2016-08-23 | 1 | -0/+5 |
| | |||||
* | Avoid resupplying unneeded source updates | Chris Robinson | 2016-08-23 | 1 | -34/+37 |
| | | | | | The source's voice holds a copy of the last properties it received, so listener updates can make sources recalculate internal properties from that stored copy. | ||||
* | Use a more specialized mixer function for B-Format to HRTF | Chris Robinson | 2016-08-12 | 2 | -2/+6 |
| | |||||
* | Decode directly from B-Format to HRTF instead of a cube | Chris Robinson | 2016-08-11 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | Last time this attempted to average the HRIRs according to their contribution to a given B-Format channel as if they were loudspeakers, as well as averaging the HRIR delays. The latter part resulted in the loss of the ITD (inter-aural time delay), a key component of HRTF. This time, the HRIRs are averaged similar to above, except instead of averaging the delays, they're applied to the resulting coefficients (for example, a delay of 8 would apply the HRIR starting at the 8th sample of the target HRIR). This does roughly double the IR length, as the largest delay is about 35 samples while the filter is normally 32 samples. However, this is still smaller the original data set IR (which was 256 samples), it also only needs to be applied to 4 channels for first-order ambisonics, rather than the 8-channel cube. So it's doing twice as much work per sample, but only working on half the number of samples. Additionally, since the resulting HRIRs no longer rely on an extra delay line, a more efficient HRTF mixing function can be made that doesn't use one. Such a function can also avoid the per-sample stepping parameters the original uses. | ||||
* | Add 'restrict' to another parameter | Chris Robinson | 2016-08-03 | 1 | -1/+1 |
| | |||||
* | Don't store the looping state in the voice | Chris Robinson | 2016-07-31 | 1 | -4/+2 |
| | | | | | Certain operations on the buffer queue depend on the loop state to behave properly, so it should not be deferred until the async voice update occurs. | ||||
* | Remove DevFmtBFormat3D, which is covered by DevFmtAmbi1 | Chris Robinson | 2016-07-31 | 1 | -1/+1 |
| | |||||
* | Add an option to specify the ambisonic output configuration | Chris Robinson | 2016-07-31 | 1 | -0/+12 |
| | |||||
* | Add a stand-alone upsampler for higher-order ambisonic oputput | Chris Robinson | 2016-07-30 | 1 | -1/+4 |
| | |||||
* | Add a config to output first-, second-, or third-order ambisonics | Chris Robinson | 2016-07-29 | 1 | -0/+3 |
| | | | | | | | | | Currently incomplete, as second- and third-order output will not correctly handle B-Format input buffers. A standalone up-sampler will be needed, similar to the high-quality decoder. Also, output is ACN ordering with SN3D normalization. A config option will eventually be provided to change this if desired. | ||||
* | Remove the last use of ALfilterState_processSingle | Chris Robinson | 2016-07-26 | 1 | -17/+0 |
| | |||||
* | Remove broken autowah effect code | Chris Robinson | 2016-07-26 | 2 | -10/+0 |
| | | | | | It's been disabled forever, and I have no idea how to make it work properly. Better to just redo it when making something that works. | ||||
* | Add some more restrict keywords | Chris Robinson | 2016-07-26 | 1 | -2/+2 |
| | |||||
* | Rename input_gain to b0 | Chris Robinson | 2016-07-26 | 1 | -3/+2 |
| | |||||
* | Make a MAX_AMBI2D_COEFFS macro instead of a magic number | Chris Robinson | 2016-07-17 | 1 | -1/+8 |
| | |||||
* | Modify bs2b_cross_feed to do multiple samples at once | Chris Robinson | 2016-07-13 | 1 | -36/+5 |
| | |||||
* | Move the input channel array out of the DirectParams and SendParams | Chris Robinson | 2016-07-13 | 2 | -15/+13 |
| | |||||
* | Store the voice output buffers separate from the params | Chris Robinson | 2016-07-11 | 2 | -6/+10 |
| | |||||
* | Reorder some source fields | Chris Robinson | 2016-07-07 | 1 | -5/+5 |
| | |||||
* | Avoid using memcpy to copy a single struct | Chris Robinson | 2016-07-06 | 1 | -14/+12 |
| | |||||
* | Remove a slightly outdated comment | Chris Robinson | 2016-07-06 | 1 | -1/+0 |
| | |||||
* | Remove the VirtOut buffer alias | Chris Robinson | 2016-07-05 | 1 | -6/+3 |
| | |||||
* | Rename MaxNoOfSources for consistency | Chris Robinson | 2016-06-08 | 1 | -1/+1 |
| | |||||
* | Only define 8 HRTF filter states and params for the device | Chris Robinson | 2016-06-04 | 1 | -2/+2 |
| | | | | | It will only be used with a cube channel setup, so there's no need to have one for every possible output channel. | ||||
* | Add property queries to get the device latency with the clock | Chris Robinson | 2016-06-03 | 1 | -0/+2 |
| | |||||
* | Remove some unnecessary volatile keywords | Chris Robinson | 2016-06-03 | 2 | -33/+33 |
| | |||||
* | Make a function static | Chris Robinson | 2016-06-01 | 1 | -1/+0 |
| | |||||
* | Use a macro to specify the ambisonic periphonic channel mask | Chris Robinson | 2016-06-01 | 1 | -1/+10 |
| | |||||
* | Use SSE for applying the HQ B-Format decoder matrices | Chris Robinson | 2016-05-31 | 1 | -0/+3 |
| | |||||
* | Hold the effectslot map lock while handling it | Chris Robinson | 2016-05-29 | 1 | -2/+11 |
| | |||||
* | Use a linked list for active effect slots | Chris Robinson | 2016-05-29 | 2 | -1/+3 |
| | |||||
* | Use a specific lock for the backend's stop/reset/play calls | Chris Robinson | 2016-05-27 | 1 | -0/+2 |
| | | | | | This helps protect against the device changing unexpectedly from multiple threads, instead of using the global list/library lock. | ||||
* | Avoid using realloc in a number of places | Chris Robinson | 2016-05-21 | 1 | -0/+1 |
| | |||||
* | Make the source position calues atomic | Chris Robinson | 2016-05-19 | 1 | -2/+2 |
| | |||||
* | Avoid redundantly storing distance model settings | Chris Robinson | 2016-05-17 | 2 | -7/+1 |
| | |||||
* | Use floats for the listener transforms | Chris Robinson | 2016-05-16 | 2 | -26/+1 |
| | |||||
* | Don't store the source's update method with the voice | Chris Robinson | 2016-05-16 | 2 | -6/+0 |
| | |||||
* | Avoid separate updates to sources that should apply together | Chris Robinson | 2016-05-15 | 2 | -2/+6 |
| | |||||
* | Avoid using a flag to specify if the effect state needs to be updated | Chris Robinson | 2016-05-15 | 1 | -3/+1 |
| | | | | | This fixes a potential missed state change if an update with a new state got replaced with one that doesn't. |