FrontendCommon: Add PlaySoundAsync()
This commit is contained in:
1 parent
cba4bb4ab2
commit
a4eb5f1d5d
10 files changed
+195
-86
No files matched your search
@@ -1809,6 +1809,14 @@ void QtHost::HookSignals()
|
||||
{
|
||||
std::signal(SIGINT, SignalHandler);
|
||||
std::signal(SIGTERM, SignalHandler);
|
||||
|
||||
#ifdef __linux__
|
||||
// Ignore SIGCHLD by default on Linux, since we kick off aplay asynchronously.
|
||||
struct sigaction sa_chld = {};
|
||||
sigemptyset(&sa_chld.sa_mask);
|
||||
sa_chld.sa_flags = SA_SIGINFO | SA_RESTART | SA_NOCLDSTOP | SA_NOCLDWAIT;
|
||||
sigaction(SIGCHLD, &sa_chld, nullptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void QtHost::InitializeEarlyConsole()
|
||||
|
||||
Reference in new issue
Block a user