aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename the UHJ filter config optionChris Robinson2022-08-091-2/+2
|
* Add an option for higher quality UHJ filtersChris Robinson2022-08-081-14/+26
|
* Parameterize the UHJ filter lengthChris Robinson2022-08-071-2/+2
|
* Don't store and manage wet buffers separatelyChris Robinson2022-07-151-7/+13
|
* Allocate EffectSlots in clustersChris Robinson2022-07-151-0/+14
|
* Dynamically allocate EffectSlot objectsChris Robinson2022-07-151-2/+2
|
* Add a config compat option for NFC distance scalingChris Robinson2022-07-071-1/+1
| | | | | | | | | | | | Currently there's no way for an application to specify the "real world" scale for in-game units. If the game doesn't use one unit to represent what should be perceived as one meter to the user, the NFC filter's effect will be too near or too far sounding. This allows adjusting the unit scale as applied to the NFC filters only, correcting the misalignment. This also removes the influence of EFX's MetersPerUnit from the NFC filters, since many games don't use it, and those that do won't know it also influences the perceived wave curvature along with the air absorption strength.
* Use an inline function instead of a function-like macroChris Robinson2022-06-121-6/+7
|
* Disable EAX if the Chorus effect is disabledChris Robinson2022-06-101-2/+7
|
* Increase the priority of the ALSA backendChris Robinson2022-06-041-3/+3
| | | | | | | | | So that it's tried before sndio. Many Linux systems seem to have libsndio installed as a hard dependency from SDL2, but not the server component to actually make it work. And because there's no way to test if it's usable without opening a device, the backend would get selected over ALSA and subsequently fail to work. As a result, Linux users that don't use PipeWire or PulseAudio would have to explicitly configure for ALSA.
* Ensure enough default sends for EAX with the config option setChris Robinson2022-05-271-10/+24
|
* Move EAX files to their own sub-directoryChris Robinson2022-05-161-2/+2
|
* Handle 3D7.1 as a separate channel configurationChris Robinson2022-04-261-0/+4
| | | | | | | It's treated as 5.1 + 2 aux channels. This allows AL_DIRECT_CHANNELS_SOFT to behave better, not forwarding rear left/right channel inputs to lower front and upper rear, and allows reporting a more appropriate output mode to the app instead of 7.1.
* Finalize ALC_SOFT_output_modeChris Robinson2022-04-171-1/+1
|
* Use a bool type for boolean parametersChris Robinson2022-04-161-1/+1
|
* Include ALC_OUTPUT_MODE_SOFT with ALC_ALL_ATTRIBUTESChris Robinson2022-04-161-4/+10
|
* Update the ALC_SOFT_output_mode surround enumsChris Robinson2022-04-151-0/+3
| | | | | | The values are identical to the matching loopback channel configuration enums, so for example ALC_5POINT1_SOFT is interchangable with ALC_SURROUND_5_1_SOFT, this is simply providing a cleaner styling for potential future modes.
* Fix ALC_SOFT_reopen_device for the null device extension listChris Robinson2022-04-011-1/+1
|
* Finalize ALC_SOFT_reopen_deviceChris Robinson2022-04-011-1/+1
|
* Remove the reversed all-pass trick in MixDirectHrtfBaseChris Robinson2022-03-301-2/+0
| | | | Given the minimum phase HRTF, it's not going to stay linear phase anyway.
* Make and use a Default enum for StereoEncodingChris Robinson2022-03-291-6/+6
|
* Rename ALC_STEREO_PLAIN_SOFT and don't duplicate ALC_HRTF_SOFTChris Robinson2022-03-291-3/+3
|
* Handle more modes with the ALC_OUTPUT_MODE_SOFT attributeChris Robinson2022-03-231-180/+207
|
* Better ensure attributes are properly tracedChris Robinson2022-03-171-28/+15
|
* Fix tracing the ALC_OUTPUT_MODE_SOFT attributeChris Robinson2022-03-171-1/+1
|
* Add options to reverse local X and Y coordinatesChris Robinson2022-03-101-7/+13
| | | | | To go along with reverse-z on the other axii. This is only for games that have position/orientation errors causing top-bottom (or left-right) inversion.
* Add a config option for reverse-zChris Robinson2022-03-101-1/+11
| | | | | | The same as the __ALSOFT_REVERSE_Z env var, but in the config file. Should only be used for per-game config files (either along side the executable, or setting the ALSOFT_CONF env var when launching the app).
* Make some local constexpr variables staticChris Robinson2022-02-231-24/+18
|
* Avoid more unnecessary atomicsChris Robinson2022-02-131-1/+1
|
* Don't make mPropsDirty atomicChris Robinson2022-02-131-1/+1
| | | | It's only ever used under the ALCcontext::mPropLock mutex.
* Don't hide EAX functions behind a contextChris Robinson2022-02-101-4/+28
| | | | | | | The standard says a function being returned doesn't necessarily mean it's usable, and calling them will return failure if called when not usable. The config option still prevents it from being returned, to better hide it when disabled globally.
* Combine listener and context updatesChris Robinson2022-02-081-3/+0
|
* Hold mPropLock when deferring updatesChris Robinson2022-02-081-0/+6
|
* DisabledEffects won't change so EAX can just check it onceChris Robinson2022-02-081-0/+5
|
* Don't pass an ALeffect to ALeffectslot::initEffectChris Robinson2022-02-071-1/+3
|
* Move ALSOFT_EAX definition to config.hChris Robinson2022-01-301-4/+4
| | | | And disable it by default for non-Windows targets
* Add EAX extensions (EAX 2.0-5.0, X-RAM) (#632)Boris I. Bendovsky2022-01-301-0/+44
| | | | | | | | | | | | | | | * Add EAX extensions (EAX 2.0-5.0, X-RAM) * Comment out C++17 leftovers * Remove everything related to patching * Update alsoftrc.sample * Rewrite integration * Fix GCC compilation under Linux * Always reset EAX effect properties when loading it into FX slot
* Add an ambi-format option for ACN ordering and FuMa scalingChris Robinson2022-01-121-0/+15
|
* Trace the device format after starting playbackChris Robinson2021-12-271-0/+7
| | | | | Some devices can change it when starting, so it's useful to know what the device configuration is when that happens.
* Increase the priority of the PipeWire backendChris Robinson2021-12-251-6/+6
|
* Don't do direct channels with UHJ outputChris Robinson2021-12-211-20/+14
| | | | | | | | | | Directly mixing a non-UHJ stereo signal into a UHJ stereo signal results in a non-UHJ stereo signal. Such a mix can't be properly decoded anymore. An option can probably be added for users that intend to listen to UHJ output undecoded and let a stereo sound come through as-is on their speakers, but it probably shouldn't be the default for cases where the output may be decoded back.
* Work around a MinGW thread_local bugChris Robinson2021-12-201-7/+7
| | | | | | | | | | MinGW-w64 generates bad code when accessing extern thread_local objects. Wrapper functions are used to ensure it only accesses them from the same place they're defined. This unfortunately adds a bit of overhead for what should be a relatively simple thing. These functions are inlined for non-MinGW targets, avoiding the overhead on non-affected targets.
* Move the effects base and effectslot to coreChris Robinson2021-12-171-2/+2
|
* Allocate voice properties in clustersChris Robinson2021-12-171-13/+8
|
* Add source properties for Super StereoChris Robinson2021-12-151-0/+4
| | | | | When playing a stereo format, enabling Super Stereo causes the source to behave as a B-Format source, with a variable width control.
* Avoid initializing the NFC filter for every voice channelChris Robinson2021-12-111-0/+1
| | | | | | It can be initialized once with the device's speaker distance since it won't change in between resets, then copied into the voice where it can be adjusted as needed.
* Return true from alcReopenDeviceSOFT if the new device openedChris Robinson2021-11-211-4/+29
|
* Make the backend pointer part of ALCdevice instead of DeviceBaseChris Robinson2021-11-191-3/+3
|
* Consolidate some variable stateChris Robinson2021-11-171-50/+47
|
* Always lock the device state when querying device attributesChris Robinson2021-11-161-32/+10
|