Commit 61586de2 authored by David Reid's avatar David Reid

PulseAudio: Default to a blocking main loop.

parent d46e19fb
......@@ -12,7 +12,6 @@ v0.11.22 - TBD
* AAudio: The default minimum SDK version has been increased from 26 to 27 when enabling AAudio. If you need to support version 26, you can use `#define MA_AAUDIO_MIN_ANDROID_SDK_VERSION 26`.
* AAudio: Fix ma_device_get_info() implementation
* PulseAudio: Allow setting the channel map requested from PulseAudio in device configs
* PulseAudio: Attempt to fix a deadlock. This involves converting the PulseAudio main loop from blocking to non-blocking. To restore the old blocking behaviour, you can do so via the device config: `deviceConfig.pulse.blockingMainLoop = MA_TRUE`.
v0.11.21 - 2023-11-15
......
......@@ -41837,10 +41837,14 @@ MA_API ma_bool32 ma_context_is_loopback_supported(ma_context* pContext)
MA_API ma_device_config ma_device_config_init(ma_device_type deviceType)
{
ma_device_config config;
MA_ZERO_OBJECT(&config);
config.deviceType = deviceType;
config.resampling = ma_resampler_config_init(ma_format_unknown, 0, 0, 0, ma_resample_algorithm_linear); /* Format/channels/rate don't matter here. */
/* Use a blocking PulseAudio loop by default. Non-blocking currently results in glitches with low period sizes. */
config.pulse.blockingMainLoop = MA_TRUE;
return config;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment