aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use the ALSOFT_LOCAL_PATH env var instead of the CWDChris Robinson2015-12-081-4/+18
|
* Support %s as a string matching markerChris Robinson2015-12-051-1/+94
|
* Add a cast to silence an MSVC warningChris Robinson2015-11-061-2/+2
|
* Use a more appropriate type in MatchFilterChris Robinson2015-11-061-2/+2
|
* Add a comment about fegetenv possibly saving the SSE register for usChris Robinson2015-10-261-0/+2
|
* Fix absolute path detection on WindowsChris Robinson2015-10-141-2/+4
|
* Move the FIR4 from SSE2 to SSE3Chris Robinson2015-10-111-6/+18
| | | | | SSE3 can avoid the slow _MM_TRANSPOSE_PS4 call thanks to the inclusion of horizontal adds.
* Try to use the full path for the CWD instead of .Chris Robinson2015-10-061-8/+26
|
* Skip empty data directory entriesChris Robinson2015-10-041-3/+6
|
* Implement SearchDataFiles for WindowsChris Robinson2015-10-041-11/+296
|
* Add a function to get a list of data filesChris Robinson2015-10-031-0/+211
| | | | | | The method takes a marked-up filename (e.g. may include %r for a sample rate, %% for %, etc), and returns a vector of strings of found filenames that match. It will search the CWD, the local, and global data directories, in that order.
* Return the data file handle on Windows if it was openedChris Robinson2015-09-161-1/+1
|