David Reid
9aa4744a94
PipeWire: Fix a memory leak.
2026-01-19 18:20:31 +10:00
David Reid
0cf35695c8
PipeWire: Set up some infrastructure for future work.
2026-01-18 16:29:40 +10:00
David Reid
3a1b85bb53
PipeWire: Rename some variables.
2026-01-18 12:48:25 +10:00
David Reid
a187fb0450
PipeWire: Try fixing a compilation error.
2026-01-18 11:58:07 +10:00
David Reid
8d9d61d607
PipeWire: Improve sample rate detection for device enumeration.
2026-01-18 11:41:36 +10:00
David Reid
64b3dd6f66
PipeWire: Comment out some unshippable code.
...
A better workaround for this is still in progress.
2026-01-18 10:31:43 +10:00
David Reid
f215062678
PipeWire: Refactoring in an attempt to work around an PipeWire issue.
...
It turns out this didn't actually fix the problem, but I actually prefer
this version so I'm going to keep this.
2026-01-18 09:30:49 +10:00
David Reid
df405b1fb7
PipeWire: Fix a crash in device enumeration.
2026-01-17 20:30:05 +10:00
David Reid
72ed924fb5
PipeWire: Make native data format detection more specific.
2026-01-16 15:08:57 +10:00
David Reid
7ac50d477e
Clean up some old code relating to the new device info system.
2026-01-16 06:26:01 +10:00
David Reid
91ddce1d17
PipeWire: Update to the new device info system.
2026-01-15 14:42:14 +10:00
David Reid
ca6361db5e
PipeWire: Fix a bug with channel map negotiation.
2026-01-07 16:57:31 +10:00
David Reid
3b0391ad44
Silence an assigned-but-not-used warning.
2026-01-07 16:43:49 +10:00
David Reid
86d5f669e4
PipeWire: Comment out an unused function.
2026-01-07 11:10:21 +10:00
David Reid
882d7329f9
Add getter functions for backend vtables.
2026-01-07 09:22:43 +10:00
David Reid
f3dfc97c2c
Fix a format selection bug in the PipeWire backend.
...
This was incorrectly choosing the wrong endian-specific sample format
when the endian.h header was not included. This commit switches to
runtime endian detection.
2026-01-05 20:18:35 +10:00
David Reid
bfe4b07da4
PipeWire: Fix some warnings.
2026-01-05 14:44:57 +10:00
David Reid
4e827fa977
Use consistent nomenclature for device backend wakeup callbacks.
...
It should be "wakeup" instead of "wake".
2026-01-05 06:05:17 +10:00
David Reid
da764a5a28
PipeWire: Fix an error when runtime linking is disabled.
2026-01-02 12:34:42 +10:00
David Reid
edc44cbcaa
PipeWire: Optimization to multi-threaded mode.
2026-01-01 09:38:21 +10:00
David Reid
552cf613b3
PipeWire: Add support for disabling runtime linking.
2025-12-31 18:19:52 +10:00
David Reid
114b9594c1
PipeWire: Finish work on removing the SPA dependency.
2025-12-31 18:18:17 +10:00
David Reid
e1dfc9d77f
PipeWire: Remove dependency on spa_format_audio_raw_parse().
2025-12-31 13:30:49 +10:00
David Reid
d2a93567df
PipeWire: Remove dependency on spa_pod_builder.
2025-12-31 09:04:00 +10:00
David Reid
c67b29de38
PipeWire: More work on removing the SPA dependency.
2025-12-30 18:00:07 +10:00
David Reid
9ebc3efa95
PipeWire: First tentative step towards removing the SPA dependency.
2025-12-30 16:40:16 +10:00
David Reid
f073a40a1c
Fix some warnings for the PipeWire backend.
2025-12-30 10:18:56 +10:00
David Reid
fa2c1b49b3
Remove unused callbacks from the device backend system.
2025-12-29 18:02:51 +10:00
David Reid
2f18c53771
PipeWire: Fix a bug with non-blocking mode.
2025-12-20 14:27:29 +10:00
David Reid
e97ab1ef32
Another pass on the PipeWire backend.
...
This removes the "wait" concept and replaces it with an extra parameter
for the step() callback for the blocking mode, which can be blocking or
non-blocking.
This also implements the wake() callback for waking up from a blocking
step.
2025-12-20 12:40:10 +10:00
David Reid
60d757a226
Return result codes from step/wait/loop callbacks.
2025-12-16 18:08:32 +10:00
David Reid
4f4f93a91b
Finish first pass of the PipeWire backend.
2025-12-12 14:39:03 +10:00
David Reid
ac7a8e691b
Fix C++ build of the PipeWire backend.
2025-11-30 19:46:52 +10:00
David Reid
ce6c21fffc
Fix some Clang warnings.
2025-08-22 07:09:06 +10:00
David Reid
7263de3b64
Delete the PipeWire test.
...
The PipeWire backend is now tested with the deviceio test.
2025-08-21 14:18:58 +10:00
David Reid
e826957a12
Disable the PipeWire backend when compiling as C89.
...
The SPA headers are not compatible with C89 which means the PipeWire
backend is not usable.
2025-08-21 07:33:08 +10:00
David Reid
76e97c6254
PipeWire: Try fixing some compilation errors.
2025-07-22 06:18:46 +10:00
David Reid
276dd4419d
Fix some errors with the PipeWire backend.
2025-07-21 16:08:52 +10:00
David Reid
de31f9ea49
Fix warnings in the PipeWire backend with GCC.
2025-07-21 14:07:24 +10:00
David Reid
fa4107ae95
API CHANGE: Remove the onContextGetDeviceInfo backend callback.
...
Device information retrieval is now implemented in terms of device
enumeration. Backends should now return any information that would have
been returned from `onContextGetDeviceInfo` straight from
`onContextEnumerateDevices` instead.
2025-07-21 11:47:14 +10:00
David Reid
2b81f75cca
API CHANGE: Change return type of device enumeration callback.
...
The callback passed into `ma_context_enumerate_devices()` would
previously return a boolean, with true telling miniaudio to continue
enumeration, and false to abort. This got a bit confusing to read at
times, so I've decided to make this more explicit.
The new return type is an enum called `ma_device_enumeration_result`.
Instead of returning true to continue enumeration, the new return value
is `MA_DEVICE_ENUMERATION_CONTINUE`. Similarly, instead of returning
false to abort enumeration, `MA_DEVICE_ENUMERATION_ABORT` should be
returned instead.
2025-07-21 11:33:15 +10:00
David Reid
8bb2b1ae80
Update to the PipeWire backend.
2025-07-18 19:16:50 +10:00
David Reid
f0ff4b6de3
API CHANGE: Remove ma_performance_profile.
...
This also removes the `performanceProfile` config option from
`ma_device_config`. Increase the period size if you want to be more
conservative.
Backends that have their own notion of a "latency hint" or the like will
have those options exposed via a backend-specific configuration option.
2025-07-15 14:35:24 +10:00
David Reid
ebec10b068
Add early PipeWire backend.
...
This is incomplete.
2025-07-15 06:59:19 +10:00