aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid double-resizing when appending a char to a stringChris Robinson2018-09-021-2/+2
|
* Read the whole Features string for neon supportChris Robinson2018-09-021-12/+20
|
* Properly get the full executable and pathname on FreeBSDChris Robinson2018-06-081-4/+4
|
* Add and use a method for fast float roundingChris Robinson2018-05-121-0/+1
| | | | | Unlike fastf2i, this keeps the result as a float instead of converting to integer.
* Don't assume round-to-zero for fastf2iChris Robinson2018-05-041-45/+8
|
* Add a specific function for truncating float-to-int conversionsChris Robinson2018-05-031-0/+1
|
* Avoid excessive if block depthsChris Robinson2018-05-021-12/+6
|
* Avoid duplication for getting the cpuidChris Robinson2018-05-021-55/+24
|
* Use proc_pidpath to get the process path on macOS when availableChris Robinson2018-03-241-0/+24
|
* Rename the mmdevapi backend to wasapiChris Robinson2018-03-091-1/+1
|
* Avoid using static inline in headersChris Robinson2018-02-251-0/+10
|
* freebsd fix: typoAlexey Elymanov2018-02-181-1/+1
| | | | | | | | Alc/helpers.c:738:30: error: use of undeclared identifier 'KERN_PROCARGS' int mib[4] = { CTL_KERN, KERN_PROCARGS, getpid() }; /usr/include/sys/sysctl.h: `#define KERN_PROC_ARGS 7 /* get/set arguments/proctitle */` there's no KERN_PROCARGS
* Avoid fixed-PATH_MAX-size buffersChris Robinson2018-01-131-5/+22
| | | | | Windows still needs to use MAX_PATH in a couple places, but that macro's guaranteed there.
* Use KERN_PROCARGS to get the process path+filename on FreeBSDChris Robinson2018-01-131-5/+4
|
* Support procfs on *BSD to get the process binaryChris Robinson2018-01-131-34/+45
|
* Allow GetProcPath to return the filename alsoChris Robinson2018-01-131-28/+46
|
* Add a string function to copy a wide-char rangeChris Robinson2018-01-131-0/+11
|
* Define a function where it's usedChris Robinson2018-01-111-3/+0
|
* Move the FPU mode declarations to a separate headerChris Robinson2018-01-111-2/+3
| | | | Also don't use inheritance with FPUCtl.
* Move the CPU capability flags to a separate headerChris Robinson2018-01-111-4/+4
|
* Fix build on Gentoo FreeBSD with freebsd-lib 9.1Daniel Scharrer2017-09-211-0/+1
|
* Manually save and restore the FPU rounding mode on WindowsChris Robinson2017-09-191-0/+10
| | | | | | | Apparently there is a bug with at least MinGW-W64 where fegetenv and fesetenv do not properly save and restore the FPU rounding mode, resulting in the rounding mode remaining as round-to-zero after certain function calls. I do not know if this also affects MSVC, but better safe than sorry for now.
* Remove the fastf2u conversion functionChris Robinson2017-06-271-1/+0
|
* Clean up some messy rounding codeChris Robinson2017-06-261-0/+3
|
* Implement GetProcPath for FreeBSDrdb2017-06-091-1/+20
|
* Use separate atomic macros for pointersChris Robinson2017-04-141-2/+2
|
* Rename al_string_* functions to alstr_*Chris Robinson2017-04-041-76/+76
|
* Make ALsourceProps' Send array dynamically sizedChris Robinson2017-02-141-0/+1
| | | | | | ALsourceProps' Send[] array is placed at the end of the struct, and given an indeterminate size. Extra space is allocated at the end of each struct given the number of auxiliary sends set for the device.
* Properly capitalize NEONChris Robinson2017-02-071-1/+1
|
* Clear trailing whitespace from the cpu features stringChris Robinson2017-02-071-0/+5
|
* Use separate macros for atomics that don't take a memory orderChris Robinson2016-12-201-4/+4
|
* Include wtypes.h for defining Windows' property keysChris Robinson2016-10-041-0/+1
|
* Only WARN if GetProcPath fails to find the binaryChris Robinson2016-09-081-1/+1
|
* Properly check if /proc/cpuinfo openedChris Robinson2016-09-081-1/+1
|
* Check for run-time NEON support by reading /proc/cpuinfoChris Robinson2016-09-071-2/+32
| | | | | | Less than ideal since documentations warn it may not list 'neon' even if it's really supported. However, the "proper" APIs to check for NEON extensions don't seem to exist in my toolchain.
* mmdevapi: Allow specifying output device by it's audio endpoint GUID or by ↵Dmytry Lavrov2016-09-061-0/+1
| | | | the device id string (Oculus VR api requires you to play back on a specific device).
* Add some helper wrappers to mmap filesChris Robinson2016-08-311-0/+107
|
* Combine VECTOR_RESIZE and VECTOR_RESERVEChris Robinson2016-07-261-80/+27
|
* Avoid passing NULL to a parameter that must not be NULLChris Robinson2016-07-261-2/+3
|
* Look in the executable's dir for another config fileChris Robinson2016-06-041-0/+97
| | | | | On Windows it'll look for alsoft.ini, and elsewhere is alsoft.conf. This applies after the user-local settings and before ALSOFT_CONF.
* Remove unnecessary VECTOR_INSERTChris Robinson2016-05-301-39/+30
|
* Avoid using realloc in a number of placesChris Robinson2016-05-211-1/+4
|
* Shorten VECTOR_ITER_ macros to VECTOR_Chris Robinson2016-04-151-21/+21
|
* Avoid double slashes when constructing pathsChris Robinson2016-04-071-3/+11
|
* Move the aligned malloc functions to the common libChris Robinson2016-03-291-50/+0
|
* Add and use a copy-range string functionChris Robinson2016-02-241-8/+20
|
* Replace the hrtf_tables option with hrtf-pathsChris Robinson2016-02-231-464/+83
|
* Remove an unused functionChris Robinson2016-02-231-149/+0
|
* Avoid using scandir/alphasortChris Robinson2016-01-211-23/+46
| | | | | They require POSIX 2008, which is a bit too "new" for my current liking. We can do well enough with opendir/readdir/closedir and qsort.
* Fix slashes on the local path on WindowsChris Robinson2015-12-081-0/+3
|