aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't warn for attributes being in a later standardChris Robinson2022-12-051-0/+5
| | | | | | | | | | C++ specifies that unknown attributes should be ignored and aren't an error. Clang issues a warning when encountering a known attribute from newer standard version than the target version. GCC recognizes attributes from newer standard versions it's aware of, allowing improved compilation capabilities. Hopefully Clang (and MSVC) will take advantage since it recognizes them, even if they weren't standardized for the target version, but there's no need to warn about known attributes in either case.
* Avoid LIKELY/UNLIKELY macrosChris Robinson2022-12-058-171/+169
|
* Avoid some uses of the LIKELY/UNLIKELY macrosChris Robinson2022-12-0515-214/+217
|
* Use standard likely/unlikely attributes when availableChris Robinson2022-12-0519-155/+141
|
* Use the correct variable for reading the WASAPI playback rateChris Robinson2022-12-051-2/+2
|
* Fix building with PipeWire 0.3.49 and earlierChris Robinson2022-12-021-0/+19
|
* Add more formats for displaying in examplesChris Robinson2022-11-291-0/+35
|
* Add missing device_clock/source_latency enums for queryingChris Robinson2022-11-291-0/+9
|
* Use the existing common FFT functions in makemhrChris Robinson2022-11-272-84/+16
|
* Use complex floats for convolution reverb FFTsChris Robinson2022-11-245-37/+49
|
* Avoid returning an array for constexpr tablesChris Robinson2022-11-241-38/+35
|
* Avoid overriding main with SDLChris Robinson2022-11-233-2/+12
|
* Don't prematurely change ALCdevice::BufferSizeChris Robinson2022-11-221-7/+11
|
* Fix WASAPI capture handling the background COM threadChris Robinson2022-11-191-18/+30
|
* Update alsoft-config for new optionsChris Robinson2022-11-172-51/+89
|
* Remove unnecessary use of SDL2_INCLUDE_DIRChris Robinson2022-11-161-2/+0
|
* Add GitHub actions workflow to build utils/makemhr on update (#783)3DJ2022-11-161-0/+76
| | | | | | | | * Build utils/makemhr on update This workflow builds makemhr.exe including dependencies (libmysofa, zlib, etc) whenever anything under utils/makemhr or the workflow is updated. It also uploads artifacts and [(pre)releases it with its own tag](https://github.com/ThreeDeeJay/openal-soft/releases/tag/makemhr) for a [permanent, up-to-date download link](https://github.com/ThreeDeeJay/openal-soft/releases/download/makemhr/makemhr.zip). * Clone latest libmysofa release tag without history
* Fix router not loading on Creative's hardware OpenAL (#773)Felipe2022-11-161-12/+22
| | | | | | | | | | | | | | | According to the programming guide and the specification, those functions may be used by extensions. However, Creative's hardware OpenAL chose to not implement stub functions for those that they do not use. Currently they use only alBufferi for X-RAM related functions. Other implementations, such as OpenAL Soft and wrap_oal implement stub functions for those methods therefore they work. This commit turns those functions optional, just like they were in the old FOSS router. Consumers of the router will receive a nullptr as expected for not implemented methods if they load them using alGetProcAddress, which I believe is the correct way to do so. That is, the context must be current before loading al* functions.
* Avoid a use-after-free in the ALSA backendChris Robinson2022-11-161-12/+12
|
* Use SDL2's sdl2-config.cmakeChris Robinson2022-11-162-199/+11
| | | | Instead of our own custom FindSDL2.cmake
* Avoid unnecessary duplicate CMake variablesChris Robinson2022-11-162-11/+2
| | | | | This should make FindPulseAudio.cmake more compatible with PulseAudio's own PulseAudioConfig.cmake.
* Use the correct frame size for WASAPI resamplingChris Robinson2022-11-131-2/+2
|
* Avoid a potential unsigned underflowChris Robinson2022-11-131-1/+1
|
* Change a function to a static methodChris Robinson2022-11-134-9/+9
|
* Avoid duplicate checks and calculationsChris Robinson2022-11-131-12/+8
|
* Add a config option to prevent WASAPI from using a resamplerChris Robinson2022-11-122-1/+13
|
* Add a resampler to WASAPI outputChris Robinson2022-11-121-10/+75
| | | | | | | This allows mixing at various samples rates that WASAPI doesn't otherwise support. This is mostly helpful for users that have unnecessarily high device rates (96 or 192khz), and lets the ALC_FREQUENCY attribute or frequency config option set a lower mixing rate for more efficient processing.
* Fix SampleConverter source read countChris Robinson2022-11-122-47/+23
|
* Add a method for the input sample delay for the SampleConverterChris Robinson2022-11-122-1/+14
|
* Dynamically start/stop the WASAPI message threadChris Robinson2022-11-121-86/+117
|
* Try to detect the update and buffer size from PipeWireChris Robinson2022-11-081-4/+45
|
* Make sure sio_write and sio_read return valid valuesChris Robinson2022-11-071-5/+12
|
* Support different input channel orders in uhjencoderChris Robinson2022-11-041-12/+39
|
* Add preliminary support for 7.1.4 output modesChris Robinson2022-11-0319-6/+201
| | | | | | | | I don't know how different sound APIs handle 7.1.4 ("Atmos" or "Auro3D") output, but currently it simply specifies the additional channels with the height channel labels. This isn't likely how it works for a virtualized channel bed, for playing over other with-height configurations (7.1.2, 5.1.4, etc), but this should be an okay start.
* Add functions to start sources at a particular device timeChris Robinson2022-11-034-161/+247
| | | | | | | | This starts a source at a particular device clock time, rounded to the nearest sample (really, 4th sample for SIMD reasons), allowing to start a sound at a particular point in the output instead of the next update. Unlike using negative offsets, this is not affected by pitch/velocity.
* Add the ability to start a voice at a particular timeChris Robinson2022-11-034-9/+49
|
* int64_t max can't fit into a double without narrowingChris Robinson2022-11-021-6/+0
|
* Handle negative voice positionsChris Robinson2022-11-023-64/+116
| | | | | | This allows a voice/source to start with a delay, more accurately than simply waiting to call alSourcePlay. The delay is affected by pitch and velocity, making it useful to simulate distant sounds that take time to be heard.
* Use the IIR filter for UHJ by defaultChris Robinson2022-10-302-3/+3
| | | | | | | Now that it doesn't cause the distortion like before, the IIR implementation provides a very wide pass-band with the lowest CPU requirements. If maintaining the original phase is important, fir256 and fir512 are still available, given whether lower CPU use or a wider pass-band is more important.
* Rename some variables to more clearly indicate their meaningChris Robinson2022-10-285-40/+40
|
* Rework the UHJ IIR filters to avoid applying an IIR in reverseChris Robinson2022-10-273-155/+130
|
* Switch back to the FIR256 filter by defaultChris Robinson2022-10-262-5/+5
| | | | | | There is a surprisingly noticeable amount of static caused by the IIR filter in particular circumstances. The 256-point filter is only slightly slower, but the frequency response should be good enough to use as a default for now.
* Use the correct input for the IIR UHJ encoderChris Robinson2022-10-262-9/+31
| | | | Also better detail the IIR implementation.
* Use the IIR all-pass filter by defaultChris Robinson2022-10-262-6/+7
|
* Fix up a commentChris Robinson2022-10-261-2/+2
|
* Add a comment about the filter delayChris Robinson2022-10-251-0/+3
|
* Fix some value orderingChris Robinson2022-10-251-2/+2
|
* Avoid nesting lambdasChris Robinson2022-10-241-42/+27
|
* Update upload-artifact to remove warning (#778)3DJ2022-10-231-1/+1
| | | | | | | > Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/upload-artifact This should fix 2 of the 3 warnings here: https://github.com/kcat/openal-soft/actions/runs/3303596206 by updating to this https://github.com/actions/upload-artifact/releases/tag/v3.1.1 The third warning is more of a heads up of the macOS runner being updated so it should go away eventually
* Add missing headerChris Robinson2022-10-221-0/+1
|