Closed oleg68 closed 6 months ago
@willeke1234 I tried to fix the problems mentioned in #1726
Could you test again?
@Oleg Great, GO doesn't hang anymore. I did get some warnings:
Saturday, 02 December 2023 at 21:14:05: 21:14:04: Warning: GOCondition::WaitOrStop: timeout while GOSoundGroupWorkItem::Finish waited for condition 0x7f83ab29cb98
Saturday, 02 December 2023 at 21:14:05: 21:14:04: Warning: GOCondition::WaitOrStop: timeout while GOSoundGroupWorkItem::Finish waited for condition 0x7f83ab29cb98
Saturday, 02 December 2023 at 21:14:19: 21:14:18: Warning: GOCondition::WaitOrStop: timeout while GOSoundGroupWorkItem::Finish waited for condition 0x7f83ab2a1268
Saturday, 02 December 2023 at 21:14:19: 21:14:18: Warning: GOCondition::WaitOrStop: timeout while GOSoundGroupWorkItem::Finish waited for condition 0x7f83ab2a1268
Saturday, 02 December 2023 at 21:14:19: 21:14:18: Warning: GOCondition::WaitOrStop: timeout while GOSoundGroupWorkItem::Finish waited for condition 0x7f83ab2a1268
@willeke1234 could you test the new commit? Do you still receive any warnings on Panic?
@Oleg No hangs, no warnings and no other problems. Thank you!
@rousseldenis @larspalo I finished working with this PR. Please review it.
@rousseldenis could you approve this PR?
Resolves: #1726
The reason of hang was
This PR
GOSound::m_IsRunning
flag that allows the audio callback to do anythingGOSound::CloseSound()
resetsGOSound::m_IsRunning
and waits for all callbacks to finish.GOSound::m_NCallbacksEntered
is used for counting of enered audio callbacks and indicating that all ones have been finished