mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
PulseAudio: Default to a blocking main loop.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user