Commit 36779c36 authored by David Reid's avatar David Reid

PulseAudio: Enable the stop callback when a stream is suspended.

Public issue https://github.com/mackron/miniaudio/issues/341
parent 5dd8fbe9
...@@ -23159,14 +23159,9 @@ static void ma_device_on_suspended__pulse(ma_pa_stream* pStream, void* pUserData ...@@ -23159,14 +23159,9 @@ static void ma_device_on_suspended__pulse(ma_pa_stream* pStream, void* pUserData
if (suspended == 1) { if (suspended == 1) {
ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_DEBUG, "[Pulse] Device suspended state changed. Suspended.\n"); ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_DEBUG, "[Pulse] Device suspended state changed. Suspended.\n");
/* Locking this behind MA_DEBUG_OUTPUT for the moment while this is still in an experimental state. */ if (pDevice->onStop) {
#if defined(MA_DEBUG_OUTPUT) pDevice->onStop(pDevice);
{
if (pDevice->onStop) {
pDevice->onStop(pDevice);
}
} }
#endif
} else { } else {
ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_DEBUG, "[Pulse] Device suspended state changed. Resumed.\n"); ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_DEBUG, "[Pulse] Device suspended state changed. Resumed.\n");
} }
...@@ -69395,7 +69390,8 @@ The following miscellaneous changes have also been made. ...@@ -69395,7 +69390,8 @@ The following miscellaneous changes have also been made.
REVISION HISTORY REVISION HISTORY
================ ================
v0.10.39 - TBD v0.10.39 - TBD
- Fix compilation errors on macOS and iOS. - Core Audio: Fix compilation errors on macOS and iOS.
- PulseAudio: Fix a bug where the stop callback is not fired when a device is unplugged.
v0.10.38 - 2021-07-14 v0.10.38 - 2021-07-14
- Fix a linking error when MA_DEBUG_OUTPUT is not enabled. - Fix a linking error when MA_DEBUG_OUTPUT is not enabled.
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