aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add an extension to request stereo UHJ outputChris Robinson2021-11-081-8/+32
|
* Use a tri-state optional for the stereo output modeChris Robinson2021-10-241-15/+26
|
* Pass a parameter to aluInitRenderer to specify UHJ outputChris Robinson2021-10-231-1/+13
|
* Use a flag to indicate headphone-like outputChris Robinson2021-10-231-0/+14
|
* Reduce the JACK and ALSA backend priorityChris Robinson2021-08-141-6/+6
| | | | | | | | | | | | | With the increased use of PipeWire, which offers JACK compatibility, the JACK backend has a higher potential to be auto-selected for users. However, due to the backend's inability to auto-configure output to the device format, this creates a less optimal out-of-the-box experience. Unfortunately this also means the JACK backend won't be used automatically when a real JACK server is running along with PulseAudio. While not ideal, this is probably the better of the two options, to have the user explicitly configure the library to use JACK when they really want to use it, instead of unwantingly selecting JACK because of PipeWire.
* Implement PipeWire playbackChris Robinson2021-08-061-1/+1
| | | | | Not yet an auto-selected backend. This doesn't yet support enumeration, or matching the AL device format to the output.
* Start a PipeWire backendChris Robinson2021-08-021-0/+6
| | | | It's just a copy of the Null backend to start with
* Use an optional bool instead of two tri-state enumsChris Robinson2021-07-311-9/+9
|
* Avoid 5.1Rear as its own channel configurationChris Robinson2021-07-301-9/+2
| | | | | | It messes with 5.1 sources using direct channels, and the surround channels are supposed to map to the side labels. Individual backends can deal with the channel order/label differences, as they already do to a degree.
* Add wrapper methods for getting device config valuesChris Robinson2021-06-231-23/+19
|
* Allow querying ALC_ALL_DEVICES_SPECIFIER from loopback devicesChris Robinson2021-06-221-1/+3
| | | | | They only return the default/driver name, since loopback devices don't have a canonical name.
* Rename alcontext.h and move some functions to context.cppChris Robinson2021-04-271-431/+57
|
* Move some functions to a more appropriate placeChris Robinson2021-04-271-49/+0
|
* Rename alcmain.h to device.hChris Robinson2021-04-271-1/+1
|
* Move BufferStorage and Voice to coreChris Robinson2021-04-271-1/+1
|
* Move ContextBase and VoiceChange to coreChris Robinson2021-04-271-1/+1
|
* Partially implement an extension to hold sources on disconnectChris Robinson2021-04-261-0/+5
| | | | | | | | 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-2/+2
|
* Move async_event.h to coreChris Robinson2021-04-251-1/+1
|
* More include cleanupChris Robinson2021-04-241-1/+1
|
* Don't bother with al string typesChris Robinson2021-04-241-3/+3
|
* Move the DeviceBase declaraction to coreChris Robinson2021-04-241-11/+5
|
* Create a base the ALCdevice and ALCcontext structsChris Robinson2021-04-241-43/+56
| | | | | A base that contains the API-agnostic data, with ALCdevice and ALCcontext being for AL-specific data.
* Move hrtf.cpp/h to coreChris Robinson2021-04-221-1/+1
|
* Avoid using config methods in hrtf.cppChris Robinson2021-04-221-9/+22
|
* Move helpers.cpp to coreChris Robinson2021-04-221-1/+1
|
* Move declarations to a more appropriate headerChris Robinson2021-04-221-6/+0
|
* Print an error when starting the backend failsChris Robinson2021-04-201-0/+4
|