aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a UHJ-specific coefficient scaling arrayChris Robinson2021-07-131-1/+1
|
* Don't allocate full buffer lines in each voiceChris Robinson2021-06-211-4/+10
| | | | | | There's now effectively a 16-channel limit for buffers (as determined by the number of elements in DeviceBase::mSampleData). Any more than that are ignored when mixing.
* Avoid mixing extraneous channelsChris Robinson2021-06-211-2/+7
|
* Add back some more missing includesChris Robinson2021-04-271-0/+1
|
* Rename alcontext.h and move some functions to context.cppChris Robinson2021-04-271-1/+1
|
* Rename alcmain.h to device.hChris Robinson2021-04-271-1/+1
|
* Update include headersChris Robinson2021-04-271-5/+5
| | | | Don't add alc/ to the include paths.
* Move ContextBase and VoiceChange to coreChris Robinson2021-04-271-1/+1
|
* Partially implement an extension to hold sources on disconnectChris Robinson2021-04-261-14/+24
| | | | | | | | Rather than stopping voices/sources when the device becomes disconnected, the context can be set to leave them alone. As a consequence, their state will remain as playing and they'll keep their last known sample offset indefinately. For applications mindful of this behavior, it will allow resetting or reopening the device to reconnect and automatically resume where it left off.
* Move bformatdec to coreChris Robinson2021-04-251-1/+1
|
* Create a base the ALCdevice and ALCcontext structsChris Robinson2021-04-241-11/+11
| | | | | A base that contains the API-agnostic data, with ALCdevice and ALCcontext being for AL-specific data.
* Fix dirty flag checkChris Robinson2021-04-181-1/+1
|
* Restore missing AL_SOFT_source_length queriesChris Robinson2021-04-151-0/+93
|
* Make an inverted atomic flag type and use itChris Robinson2021-04-151-5/+5
| | | | | | | | The inverted atomic flag replaces test_and_set+clear with test_and_clear+set, essentially inverting the flag status. This makes more logical sense for flagging dirty state, which is less confusing than flagging clean state. The one caveat is ATOMIC_FLAG_INIT (or default construction in C++20) initializes the state to true rather than false.
* 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
|