Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Alter how panpot/pair-wise panning works | Chris Robinson | 2017-02-23 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | This change allows pair-wise panning to mostly go through the normal ambisonic panning methods, with one special-case. First, a term is added to the stereo decoder matrix's X coefficient so that a centered sound is reduced by -3dB on each output channel. Panning in front creates a similar gain response to the typical L = sqrt(1-pan) R = sqrt(pan) for pan = [0,1]. Panning behind the listener can reduce (up to) an additional -10dB, creating a audible difference between front and back sounds as if simulating head obstruction. Secondly, as a special-case, the source positions are warped when calculating the ambisonic coefficients so that full left panning is reached at -30 degrees and full right at +30 degrees. This is to retain the expected 60-degree stereo width. This warping does not apply to B-Format buffer input, although it otherwise has the same gain responses. | ||||
* | Limit filter gains to -24dB | Chris Robinson | 2017-02-22 | 1 | -1/+1 |
| | |||||
* | Increase the default effect slot and send count | Chris Robinson | 2017-02-21 | 1 | -1/+2 |
| | | | | | | | | | | The default number of auxiliary effect slots is now 64. This can still be raised by the config file without a hard maximum, but incurs processing cost for each effect slot generated by the app. The default number of source sends is now actually 2, as per the EFX docs. However, it can be raised up to 16 via ALC_MAX_AUXILIARY_SENDS attribute requests, rather than the previous 4. | ||||
* | Dynamically allocate the ALsource Send[] array | Chris Robinson | 2017-02-21 | 3 | -24/+35 |
| | |||||
* | Make the voices' Send[] array dynamically sized | Chris Robinson | 2017-02-21 | 3 | -10/+10 |
| | | | | | The voices are still all allocated in one chunk to avoid memory fragmentation. But they're accessed as an array of pointers since the size isn't static. | ||||
* | Apply distance compensation when writing to the output | Chris Robinson | 2017-02-19 | 1 | -0/+12 |
| | |||||
* | Remove the sinc8 resampler option | Chris Robinson | 2017-02-19 | 1 | -12/+2 |
| | | | | | Perf shows less than 1 percent CPU difference from the higher quality bsinc resampler, but uses almost twice as much memory (a 128KB lookup table). | ||||
* | Reorganize ALvoice members | Chris Robinson | 2017-02-15 | 2 | -10/+9 |
| | | | | | This places the Send[] array at the end of the struct, making it easier to handle dynamically. | ||||
* | Make ALsourceProps' Send array dynamically sized | Chris Robinson | 2017-02-14 | 3 | -19/+19 |
| | | | | | | ALsourceProps' Send[] array is placed at the end of the struct, and given an indeterminate size. Extra space is allocated at the end of each struct given the number of auxiliary sends set for the device. | ||||
* | Fix build with non-C11 atomics | Chris Robinson | 2017-02-13 | 2 | -3/+3 |
| | |||||
* | Make the source state atomic | Chris Robinson | 2017-02-13 | 2 | -27/+28 |
| | | | | | Since it's modified by the mixer when playback is ended, a plain struct member isn't safe. | ||||
* | Put BsincState in a generic union | Chris Robinson | 2017-02-13 | 2 | -2/+6 |
| | |||||
* | Fix more uses of unsigned sizes and offsets | Chris Robinson | 2017-02-10 | 1 | -1/+1 |
| | |||||
* | Remove a couple context lock wrapper functions | Chris Robinson | 2017-02-07 | 2 | -23/+17 |
| | |||||
* | Remove __android_log_print calls for TRACEREF | Chris Robinson | 2017-01-27 | 1 | -1/+0 |
| | | | | | TRACEREFs aren't normally important, and for as often as it happens, the added function calls are wasteful even if they end up doing nothing. | ||||
* | Also log to __android_log_print on Android | Chris Robinson | 2017-01-26 | 1 | -0/+11 |
| | |||||
* | Move the B-Format HRTF virtual speaker stuff to InitHrtfPanning | Chris Robinson | 2017-01-18 | 1 | -12/+20 |
| | | | | | This keeps the decoder matrices and coefficient mapping together for if it changes in the future. | ||||
* | Replace some ALvoid with void | Chris Robinson | 2017-01-18 | 1 | -3/+3 |
| | |||||
* | Use ALsizei in more places | Chris Robinson | 2017-01-18 | 6 | -39/+39 |
| | |||||
* | Pass the left and right buffers to the hrtf mixers directly | Chris Robinson | 2017-01-17 | 1 | -5/+5 |
| | |||||
* | Use ALsizei and ALint for sizes and offsets with resamplers and filters | Chris Robinson | 2017-01-16 | 3 | -4/+5 |
| | |||||
* | Use ALsizei for sizes and offsets with the mixer | Chris Robinson | 2017-01-16 | 2 | -18/+18 |
| | | | | | | Unsigned 32-bit offsets actually have some potential overhead on 64-bit targets for pointer/array accesses due to rules on integer wrapping. No idea how much impact it has in practice, but it's nice to be correct about it. | ||||
* | Use second-order ambisonics for basic HRTF rendering | Chris Robinson | 2017-01-15 | 1 | -2/+2 |
| | | | | | | This should improve positional quality for relatively low cost. Full HRTF rendering still only uses first-order since the only use of the dry buffer there is for first-order content (B-Format buffers, effects). | ||||
* | Reorder filter coefficients | Chris Robinson | 2016-12-21 | 1 | -1/+1 |
| | |||||
* | Avoid duplicating code using a macro | Chris Robinson | 2016-12-21 | 3 | -16/+3 |
| | |||||
* | Convert the SndIO backend to the updated API | Chris Robinson | 2016-12-21 | 1 | -3/+0 |
| | |||||
* | Trace the commit ID and branch the library was built from | Chris Robinson | 2016-12-21 | 1 | -0/+2 |
| | |||||
* | Use separate macros for atomics that don't take a memory order | Chris Robinson | 2016-12-20 | 6 | -57/+60 |
| | |||||
* | Fix an infinite loop | Chris Robinson | 2016-11-23 | 1 | -0/+1 |
| | |||||
* | Only send source updates for sources that have updated | Chris Robinson | 2016-11-23 | 2 | -1/+12 |
| | |||||
* | Clean up finding a source's voice | Chris Robinson | 2016-11-22 | 2 | -27/+30 |
| | |||||
* | Improve seqlock behavior | Chris Robinson | 2016-11-21 | 1 | -24/+32 |
| | |||||
* | Stop using almemory_order_consume | Chris Robinson | 2016-11-17 | 3 | -3/+3 |
| | |||||
* | Workaround some systems having an ECHO macro | Chris Robinson | 2016-10-30 | 3 | -23/+23 |
| | |||||
* | Add some more 'restrict' keywords | Chris Robinson | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Remove an unused struct | Chris Robinson | 2016-10-05 | 1 | -6/+0 |
| | |||||
* | Pass current and target gains directly for mixing | Chris Robinson | 2016-10-05 | 1 | -2/+3 |
| | |||||
* | Make some pointer-to-array parameters const | Chris Robinson | 2016-10-04 | 2 | -2/+45 |
| | |||||
* | Finalize AL_SOFT_gain_clamp_ex | Chris Robinson | 2016-10-03 | 1 | -5/+0 |
| | |||||
* | Add a volume-adjust config option to adjust the source output volume | Chris Robinson | 2016-09-24 | 2 | -5/+7 |
| | | | | | | | | | Designed for apps that either don't change the listener's AL_GAIN, or don't allow the listener's AL_GAIN to go above 1. This allows the volume to still be increased further than such apps may allow, if users find it too quiet. Be aware that increasing this can easily cause clipping. The gain limit reported by AL_GAIN_LIMIT_SOFT is also affected by this. | ||||
* | Remove some more unnecessary volatiles | Chris Robinson | 2016-09-24 | 1 | -5/+5 |
| | |||||
* | Call ALfilterState_processC directly | Chris Robinson | 2016-09-12 | 2 | -5/+2 |
| | | | | | | It's the only implementation currently, so there's no point to having it stored as a function pointer in the filter struct. Even if there were SIMD versions, it'd be a global selection, not per-instance. | ||||
* | Mark a global variable declaration as extern | Chris Robinson | 2016-09-11 | 1 | -1/+1 |
| | |||||
* | 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 | 3 | -14/+12 |
| | | | | | 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 |
| | |||||
* | Remove unnecessary consts | Chris Robinson | 2016-08-31 | 1 | -4/+4 |
| | | | | They were causing GCC's built-in atomic cmpxchg to complain. | ||||
* | Reorganize sample type conversion functions | Chris Robinson | 2016-08-31 | 1 | -286/+129 |
| | | | | To help avoid redundant manual definitions. |