aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize ALvoice membersChris Robinson2017-02-152-10/+9
| | | | | This places the Send[] array at the end of the struct, making it easier to handle dynamically.
* Make ALsourceProps' Send array dynamically sizedChris Robinson2017-02-143-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 atomicsChris Robinson2017-02-132-3/+3
|
* Make the source state atomicChris Robinson2017-02-132-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 unionChris Robinson2017-02-132-2/+6
|
* Fix more uses of unsigned sizes and offsetsChris Robinson2017-02-101-1/+1
|
* Remove a couple context lock wrapper functionsChris Robinson2017-02-072-23/+17
|
* Remove __android_log_print calls for TRACEREFChris Robinson2017-01-271-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 AndroidChris Robinson2017-01-261-0/+11
|
* Move the B-Format HRTF virtual speaker stuff to InitHrtfPanningChris Robinson2017-01-181-12/+20
| | | | | This keeps the decoder matrices and coefficient mapping together for if it changes in the future.
* Replace some ALvoid with voidChris Robinson2017-01-181-3/+3
|
* Use ALsizei in more placesChris Robinson2017-01-186-39/+39
|
* Pass the left and right buffers to the hrtf mixers directlyChris Robinson2017-01-171-5/+5
|
* Use ALsizei and ALint for sizes and offsets with resamplers and filtersChris Robinson2017-01-163-4/+5
|
* Use ALsizei for sizes and offsets with the mixerChris Robinson2017-01-162-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 renderingChris Robinson2017-01-151-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 coefficientsChris Robinson2016-12-211-1/+1
|
* Avoid duplicating code using a macroChris Robinson2016-12-213-16/+3
|
* Convert the SndIO backend to the updated APIChris Robinson2016-12-211-3/+0
|
* Trace the commit ID and branch the library was built fromChris Robinson2016-12-211-0/+2
|
* Use separate macros for atomics that don't take a memory orderChris Robinson2016-12-206-57/+60
|
* Fix an infinite loopChris Robinson2016-11-231-0/+1
|
* Only send source updates for sources that have updatedChris Robinson2016-11-232-1/+12
|
* Clean up finding a source's voiceChris Robinson2016-11-222-27/+30
|
* Improve seqlock behaviorChris Robinson2016-11-211-24/+32
|
* Stop using almemory_order_consumeChris Robinson2016-11-173-3/+3
|
* Workaround some systems having an ECHO macroChris Robinson2016-10-303-23/+23
|
* Add some more 'restrict' keywordsChris Robinson2016-10-061-1/+1
|
* Remove an unused structChris Robinson2016-10-051-6/+0
|
* Pass current and target gains directly for mixingChris Robinson2016-10-051-2/+3
|
* Make some pointer-to-array parameters constChris Robinson2016-10-042-2/+45
|
* Finalize AL_SOFT_gain_clamp_exChris Robinson2016-10-031-5/+0
|
* Add a volume-adjust config option to adjust the source output volumeChris Robinson2016-09-242-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 volatilesChris Robinson2016-09-241-5/+5
|
* Call ALfilterState_processC directlyChris Robinson2016-09-122-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 externChris Robinson2016-09-111-1/+1
|
* Use unsigned int shifts for device flagsChris Robinson2016-09-071-5/+5
|
* Make the SelectMixer function sharableChris Robinson2016-09-061-0/+2
|
* Remove use of DECL_CONSTChris Robinson2016-09-063-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 matrixChris Robinson2016-09-051-0/+1
|
* Rename MatrixMixerFunc to RowMixerFuncChris Robinson2016-09-021-3/+3
|
* Remove unnecessary constsChris Robinson2016-08-311-4/+4
| | | | They were causing GCC's built-in atomic cmpxchg to complain.
* Reorganize sample type conversion functionsChris Robinson2016-08-311-286/+129
| | | | To help avoid redundant manual definitions.
* Initialize some enums to dummy valuesChris Robinson2016-08-311-8/+9
|
* Remove the upper limit from AL_MIN_GAIN and AL_MAX_GAINChris Robinson2016-08-291-2/+2
| | | | As per the current AL_SOFT_gain_clamp_ex proposal.
* Add a query for the maximum source gain limitChris Robinson2016-08-282-0/+31
|
* Clamp the maximum mixing gain boost to 16Chris Robinson2016-08-271-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 effectChris Robinson2016-08-263-8/+19
| | | | | | | | | | | | | | 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.
* Avoid directly replacing the effect slot Update pointerChris Robinson2016-08-251-14/+10
|
* Properly defer effect slot changesChris Robinson2016-08-252-11/+31
| | | | | | | | 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.