aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pipewire.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Track the current/active format for pipewire nodesChris Robinson2023-08-111-55/+85
|
* Use a string_view for the backend open methodChris Robinson2023-08-061-10/+11
|
* Don't use pipewire user data storage for native proxy objectsChris Robinson2023-08-041-110/+83
|
* Make C callback functions noexceptChris Robinson2023-07-201-15/+15
|
* Fix some typos (#872)Dirk Stolle2023-07-041-1/+1
|
* Specify the device type for the event callbackChris Robinson2023-06-011-5/+17
|
* Add a comment explaining the DeviceAdded logic for PipeWireChris Robinson2023-06-011-1/+10
|
* Report device change events from PipeWireChris Robinson2023-05-311-34/+91
|
* Use some more standard functionsChris Robinson2023-05-051-6/+6
|
* Remove custom stuff for standardChris Robinson2023-05-041-2/+2
|
* Avoid defining separate wrapper functionsChris Robinson2023-05-041-32/+16
|
* Use std::byte instead of a custom al::byteChris Robinson2023-05-041-5/+5
|
* Make and use a bit_cast functionChris Robinson2023-05-041-4/+5
| | | | Instead of reinterpret_casting between incompatible types
* Replace al::optional with std::optionalChris Robinson2023-05-041-4/+4
|
* Use macros for the likely/unlikely attributesChris Robinson2023-03-011-7/+7
| | | | | The syntax parser for GCC 8 (and earlier?) fails when these attributes are in certain places.
* Check a string for NULL before calling strtoullChris Robinson2023-02-111-8/+9
|
* Use the object serial ID from PipeWire when availableChris Robinson2023-01-241-21/+47
| | | | | | | | | | | Using the node ID as a target is deprecated in newer versions of PipeWire. The serial ID is a monotonic 64-bit integer ID, incremeneted for every object created, so is guaranteed to always refer to the same target (until it wraps around, which I suppose isn't expected/allowed to happen), compared to the 32-bit node ID which I guess allows reuse. We could instead use the target node's name instead of the serial ID, but an integer is nicer to manage than a string.
* Don't rely on mRateMatch while waiting for PipeWire timing infoChris Robinson2023-01-091-5/+2
|
* Add an option to mix on PipeWire's non-RT threadChris Robinson2023-01-081-14/+14
|
* Avoid some explicit casts and referencesChris Robinson2023-01-011-6/+4
|
* Avoid setting PipeWire stream properties with separate callsChris Robinson2022-12-061-12/+11
|
* Avoid using a macro to wrap standard attributesChris Robinson2022-12-061-7/+7
|
* Use standard likely/unlikely attributes when availableChris Robinson2022-12-051-7/+7
|
* Fix building with PipeWire 0.3.49 and earlierChris Robinson2022-12-021-0/+19
|
* Don't prematurely change ALCdevice::BufferSizeChris Robinson2022-11-221-7/+11
|
* Try to detect the update and buffer size from PipeWireChris Robinson2022-11-081-4/+45
|
* Add preliminary support for 7.1.4 output modesChris Robinson2022-11-031-1/+8
| | | | | | | | 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 media class for Audio/Source/Virtual as a valid node (#747)Eir W2022-08-021-1/+6
|
* Define PW_KEY_NODE_RATE when neededChris Robinson2022-06-241-0/+5
|
* Fix the PipeWire version checkChris Robinson2022-06-241-1/+2
| | | | | | PW_CHECK_VERSION checks if the header version is equal to or newer than the values specified, it can't be used to check if the library version is equal to or newer than the header version.
* Keep some variables local to where they're neededChris Robinson2022-05-131-26/+21
|
* Use pw_buffer::requested in newer PipeWire versionsChris Robinson2022-05-131-16/+26
|
* More agressively hide PipeWire and SDL header warningsChris Robinson2022-05-091-1/+13
|
* Reject older versions of PipeWire than built againstChris Robinson2022-05-071-0/+24
| | | | | | | | | | | | | | | | | | | Newer versions of PipeWire may add things to public structures. For example, pw_buffer::requested added in 0.3.49. Building against 0.3.49 or newer, but then running with 0.3.48 could result in invalid accesses since the returned pw_buffer objects are shorter than the definition says to expect, creating undefined behavior. Even if explicit access to the additional fields is protected by a runtime check, the language allows the compiler to assume a pointer to a pw_buffer object contains a complete pw_buffer, allowing the optimizer to access the field earlier than the check (with the check only controlling if the value gets used). Another example is pw_time, which had a few fields added in 0.3.50 along with a function, pw_stream_get_time_n, that provides the size of the pw_time struct the application is using (so the library knows what version of the struct it has to fill in). If a later version adds a new field, running it with an older version will either fail (due to the library getting a size larger than it knows about) or silently leave the newer fields as garbage.
* Avoid a deprecated PipeWire functionChris Robinson2022-05-061-4/+17
| | | | | Building against 0.3.50 or newer will require that version or newer at runtime. Building against a version before 0.3.50 will work with newer versions.
* Handle 3D7.1 as a separate channel configurationChris Robinson2022-04-261-0/+1
| | | | | | | It's treated as 5.1 + 2 aux channels. This allows AL_DIRECT_CHANNELS_SOFT to behave better, not forwarding rear left/right channel inputs to lower front and upper rear, and allows reporting a more appropriate output mode to the app instead of 7.1.
* Trace the actual device form factor in pipewireChris Robinson2022-02-161-11/+5
|
* Don't trace ignored pipewire stream nodesChris Robinson2022-02-151-1/+3
|
* Reset mIs51Rear only when updating the channel configChris Robinson2022-02-151-4/+4
|
* Log when a pipewire device is removedChris Robinson2022-02-151-1/+6
|
* Mark another operator bool as explicitChris Robinson2022-02-151-1/+1
|
* Add some common wrapper methods to ThreadMainloopChris Robinson2022-01-261-42/+46
|
* Default the PipeWire lock's operator= instead of using the baseChris Robinson2022-01-261-1/+1
|
* Handle 5.1 using rear channels with PulseAudio and PipeWireChris Robinson2022-01-251-23/+46
|
* Move some definitions to where they're usedChris Robinson2022-01-241-2/+2
|
* Avoid a messy while loop to remove from a vectorChris Robinson2022-01-221-11/+8
|
* Restructure the PipeWire backend code a bitChris Robinson2022-01-221-219/+235
| | | | | Make some functions into class member functions, and move related declarations closer together.
* Avoid holding a pw_proxy, hold the type it representsChris Robinson2022-01-221-36/+70
|
* Handle duplex devices with PipeWireChris Robinson2022-01-221-22/+43
|
* Load the PipeWire real-time configurationChris Robinson2022-01-171-18/+57
| | | | | This is apparently needed to ensure RT threads get RT priority, separately from requesting RT processing.