aboutsummaryrefslogtreecommitdiffstats
path: root/core/helpers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clean up some unnecessary includesChris Robinson2023-06-031-22/+9
|
* Improve wasapi backend UWP support (#853)Deal(一线灵)2023-05-311-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve wasapi, support uwp build * Fix compile errors * [UWP] Support ReadALConfig from app roaming * [UWP] Post disconnect event when default device changed * [UWP] Fix appveyor ci * [WIN32] Default device change notification support * Fix warnings * Add event to notify the app when the default device changes - Event type: AL_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT=0x19A7 - Event callback parameters: void _onALSoftEvent(ALenum eventType, ALuint object, // dataFlow: 0(render), 1(capture) ALuint param, // 0 ALsizei length, // 0 const ALchar* message, // Default device changed:<deviceId> void* userParam); * Fix warnings * Fire default device changed event in mixerProc thread * Fix compile warning * [UWP] Improve cmake * Revert changes * Notify default device change by system event callback * Revert insignificant change * Remove duplicate call
* Replace al::optional with std::optionalChris Robinson2023-05-041-4/+4
|
* Use std::optional instead of a custom implementationChris Robinson2023-05-041-9/+9
|
* Avoid unnecessary uses of make_optionalChris Robinson2023-01-131-1/+1
|
* Simplify constructing the process path and executable nameChris Robinson2022-12-301-7/+5
|
* Don't assume rlim_t is unsignedChris Robinson2022-07-221-3/+4
|
* Search the installation data directory (#693)ilya-fedin2022-05-131-0/+14
| | | That allows the logic to work on non-FHS distros like NixOS
* Don't enable RTKit/D-Bus support on WindowsChris Robinson2022-05-091-12/+11
|
* Fix an unused parameter warningChris Robinson2022-02-231-1/+6
| | | | ... when either pthread_setschedparam or RTKit aren't available.
* Handle _gettid on FreeBSDChris Robinson2022-01-181-2/+2
| | | | And simplify handling D-Bus/RTKit interfaces
* Set niceness as a fallback only on LinuxChris Robinson2022-01-181-0/+9
| | | | | | | If pthread_setschedparam and rtkit_make_realtime both fail, lowering niceness can also work to boost priority. However, this only works on Linux and other OSs that implement a per-thread niceness (POSIX standard has it per-process, which isn't desirable behavior here).
* Handle the rt-prio config options as the priority levelChris Robinson2022-01-181-82/+111
|
* Downgrade some ERRs to WARNsChris Robinson2021-11-211-1/+1
|
* Avoid shadowing a variable nameChris Robinson2021-05-131-2/+2
|
* Update include headersChris Robinson2021-04-271-2/+3
| | | | Don't add alc/ to the include paths.
* Avoid over-long linesChris Robinson2021-04-221-2/+5
|
* Move helpers.cpp to coreChris Robinson2021-04-221-0/+510