aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add support for 4-channel UHJChris Robinson2021-03-311-4/+4
| | | | Also add the SOFT moniker to the new macros
* Handle 3-channel UHJ audio buffersChris Robinson2021-03-311-2/+4
|
* Decode UHJ buffers to B-Format for mixingChris Robinson2021-03-311-4/+4
| | | | | This should also have an adjustment for the shelf filter. Although it's not clear what the appropriate adjustments should be.
* Combine some duplicate codeChris Robinson2021-03-301-42/+1
|
* Load/convert samples from all channels at once for mixingChris Robinson2021-03-191-7/+8
| | | | | | | This uses a bit more memory (each voice needs to hold buffers for the deinterleaved samples of each channel, instead of just one buffer for the current channel being mixed on the device), but it will allow for handling formats that need or prefer their channels decoded together.
* Add a alSourceQueueBufferLayersSOFT stubChris Robinson2021-02-041-0/+11
| | | | For compatiblity with apps that may have directly linked to it on accident.
* Make sure InitVoice is given a valid buffer queue itemChris Robinson2021-01-261-2/+2
|
* Use an AL-specific buffer queue item struct for sourcesChris Robinson2021-01-251-36/+32
|
* Use a deque for the source buffer queueChris Robinson2021-01-251-148/+112
| | | | | | This mainly avoids having to allocate ~64-byte structures individually. The mixing voice still holds the queue as a linked list so as to be container- agnostic.
* Store the callback in the buffer list itemChris Robinson2021-01-241-1/+3
|
* Store buffer info in the queue entryChris Robinson2021-01-241-3/+8
|
* Make PopCount and CountTrailingZeros more standard-likeChris Robinson2021-01-221-3/+4
|
* Avoid global constexpr arraysChris Robinson2021-01-211-2/+2
|
* Add a crossover frequency field for the deviceChris Robinson2020-12-261-1/+1
| | | | | | Used when upsampling low-order ambisonic signals to higher order. Rather than a hardcoded 400hz, it ensures a consistent crossover point when an ambdec configuration is used. It can also allow for an alsoft config option.
* Move alexcpt to coreChris Robinson2020-12-241-1/+1
|
* Move logging to coreChris Robinson2020-12-171-1/+1
|
* Don't link DistanceModel enums to AL valuesChris Robinson2020-12-161-10/+39
|
* Use a separate enum for the VoiceChange stateChris Robinson2020-12-161-7/+7
|
* Move VoiceChange to a separate headerChris Robinson2020-12-161-0/+1
|
* Move ambidefs.h to coreChris Robinson2020-12-121-1/+1
|
* Move the filters to coreChris Robinson2020-12-041-2/+2
|
* Make sure batched source updates are with the proper voiceChris Robinson2020-11-241-6/+9
|
* Make ALbuffer inherit from BufferStorageChris Robinson2020-11-211-72/+55
|
* Disassociate internal voice enums from AL enumsChris Robinson2020-11-201-12/+62
|
* Use BufferStorage for the buffer queueChris Robinson2020-11-191-92/+107
|
* Use a separate structure for the active effect slot propertiesChris Robinson2020-11-071-2/+4
|
* Replace the mixer fraction macros with constexpr variablesChris Robinson2020-10-211-9/+8
|
* Replace some more macros with constexpr variablesChris Robinson2020-10-211-1/+1
|
* Change some more macros into constexpr variablesChris Robinson2020-10-211-7/+7
|
* Declare variables closer to where they're usedChris Robinson2020-10-131-50/+43
|
* Use inline functions for popcnt and ctz instead of macrosChris Robinson2020-10-131-4/+3
|
* Use a separate structure for buffer storageChris Robinson2020-08-281-21/+22
|
* Clarify an error messageChris Robinson2020-05-251-3/+5
|
* Use an enum class for SpatializeModeChris Robinson2020-05-211-1/+1
|
* Fix up some more uses of [AL[C]]voidChris Robinson2020-04-281-24/+24
|
* Fix the source ID for a source voice stopped from deletionChris Robinson2020-04-211-1/+1
|
* Track a buffer's ambisonic orderChris Robinson2020-04-041-10/+16
|
* Rename ALvoice and related structs to VoiceChris Robinson2020-03-281-45/+45
|
* Avoid some extraneous uses of AL type aliasesChris Robinson2020-03-251-88/+88
|
* Dynamically allocate voice channel dataChris Robinson2020-03-251-13/+13
| | | | | | | Rather than allocating for a full 8 channels for each voice, when the vast majority will only need 1 or 2. The voice channel data is relatively big since it needs to hold HRTF coefficients and history, and this will allow increasing the maximum number of buffer channels without an obscene memory increase.
* Use inline initialization more for sourcesChris Robinson2020-03-231-45/+0
|
* Fix voices being forced to update without valid propertiesChris Robinson2020-03-041-2/+3
| | | | | | | | | | | | | | | | When starting a voice, the source ID was set before its first update struct was provided, creating a small window where a listener or effect slot update could force a voice to update without it having any valid properties to update with. Supplying the update struct first would create a different race, where the mixer could see a voice without a source but with an update struct, causing the update struct to be 'freed' without being applied. The fix here is to provide the update struct before setting the source ID, and change the mixer to ignore update structs for voices without a source ID. This can pseudo-orphan the updates that get set on a voice just as it stops, leaving the struct unusable until the voice is used again, or the voice gets deleted which will clear it. But it allows the update struct to stay in place and get applied once the voice gets a source ID.
* Avoid redundantly setting voice membersChris Robinson2020-03-041-26/+24
|
* Don't change flags after InitVoiceChris Robinson2020-03-041-11/+9
|
* Use a new voice state to indicate a pending source offset changeChris Robinson2020-03-041-6/+7
|
* Avoid unnecessarily reclearing some variablesChris Robinson2020-03-031-51/+36
|
* Add a helper to wait for the device mixChris Robinson2020-03-031-16/+9
|
* Simplify getting a voice for a new source offsetChris Robinson2020-02-281-17/+21
|
* Use a VoiceChange object to change the offset of a playing sourceChris Robinson2020-02-261-61/+138
|
* Rename the voice's PendingStop to PendingChangeChris Robinson2020-02-261-6/+6
|