aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/alsa.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy cleanups (#800)Rosen Penev2023-01-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <[email protected]> Signed-off-by: Rosen Penev <[email protected]>
* Avoid extraneous temporaries when filling vectorsChris Robinson2022-12-151-4/+9
|
* Avoid a use-after-free in the ALSA backendChris Robinson2022-11-161-12/+12
|
* Declare variables closer to where they're usedChris Robinson2022-07-181-4/+2
|
* Downgrade some ERRs to WARNsChris Robinson2021-11-211-2/+2
|
* Remove the last external uses of GetConfigValueChris Robinson2021-10-211-29/+36
|
* Don't assume more than stereo for unrequested ALSA channelsChris Robinson2021-07-241-45/+35
| | | | | | If setting the requested format channel count fails, getting anything with 2 or more channels assumes the first two channels are stereo, leaving the rest silent.
* Update include headersChris Robinson2021-04-271-4/+3
| | | | Don't add alc/ to the include paths.
* Use the DeviceBase for the backendChris Robinson2021-04-241-3/+3
|
* Move helpers.cpp to coreChris Robinson2021-04-221-1/+1
|
* Move declarations to a more appropriate headerChris Robinson2021-04-221-0/+1
|
* Allow calling BackendBase::open multiple times on playback devicesChris Robinson2021-03-081-2/+6
| | | | | | | | | | | It will not be called while the device is running. If the first call succeeds, a subsequent call that happens to fail must leave the existing device state as it was so it can be resumed. This is a rough first pass. It will fail when trying to re-open the same device which can only be opened once (for instance, with direct hardware access, on hardware that doesn't do its own mixing). Some backends won't guarantee the new device is usable until the reset() or start() call.
* Use a standard bitset for bitfield flagsChris Robinson2021-01-221-2/+2
|
* Remove unnecessary includesChris Robinson2020-12-241-2/+0
|
* Move alexcpt to coreChris Robinson2020-12-241-1/+0
|
* Avoid AL/ALC types in the backendsChris Robinson2020-12-171-17/+17
|
* Don't use ALC error enums for the backend error codeChris Robinson2020-12-171-19/+22
|
* Don't return an enum from captureSamplesChris Robinson2020-12-171-9/+7
| | | | It's always no_error
* Move logging to coreChris Robinson2020-12-171-1/+1
|
* Make sure to stop ALSA playback when the backend stopsChris Robinson2020-12-121-0/+3
|
* Change a couple functions into member functionsChris Robinson2020-08-071-8/+8
|
* Move a couple related functions to the backend baseChris Robinson2020-06-121-1/+1
|
* Don't return a bool from the backend start methodChris Robinson2020-04-281-13/+8
|
* Get rid of a redundant enumChris Robinson2020-03-301-3/+3
|
* Return the enumerated device names from the backendChris Robinson2020-03-301-11/+15
| | | | Rather than using an out parameter.
* Remove the mutex from the backend baseChris Robinson2020-03-291-4/+5
|
* Remove unnecessary locks now that the mixer doesn't require oneChris Robinson2020-02-261-4/+4
|
* Make CreateRingBuffer a static RingBuffer methodChris Robinson2020-01-101-1/+1
|
* Handle padding between device sample framesChris Robinson2019-12-211-2/+4
| | | | | | | | The padding must be constant and sample type aligned (e.g. some fixed multiple of two bytes between the start of two consecutive frames for 16-bit output). The intent is to always have the ability for stereo output with WASAPI even if the device has some other unsupported configuration, as long as front-left and front-right exist.
* Add a config option for custom ALSA capture devicesChris Robinson2019-10-271-18/+16
|
* Use smart pointers for ALSA param handlesChris Robinson2019-10-091-132/+128
| | | | And simplify some related error handling
* Never return null from CreateRingBufferChris Robinson2019-10-081-3/+0
| | | | | Allocation failure would already throw a bad_alloc anyway, now a size overflow throws an exception too.
* Clean up some exception messages and avoid duplicate log messagesChris Robinson2019-10-081-13/+3
|
* Avoid raw lock/unlock callsChris Robinson2019-10-071-8/+4
|
* Use exceptions for backend open failuresChris Robinson2019-10-071-21/+14
|
* Return and pass more appropriate types for backendsChris Robinson2019-09-151-19/+19
|
* Fix some more implicit conversions noted by GCCChris Robinson2019-09-141-1/+1
|
* Clean up (most) implicit conversions in the backendsChris Robinson2019-09-141-43/+50
|
* Use al::byte for a couple more buffersChris Robinson2019-08-251-5/+5
|
* Move the dynload decls and defs to commonChris Robinson2019-08-101-1/+1
|
* Rename Alc to alcChris Robinson2019-07-281-0/+1288