duckstation/src/frontend-common/platform_misc.h
Connor McLaughlin 8d7aea5e19 Host: Add GetTopLevelWindowInfo()
And use it for screensaver inhibiting on Linux.
2022-11-18 18:44:00 +10:00

11 lines
364 B
C++

#include "common/window_info.h"
namespace FrontendCommon {
void SuspendScreensaver();
void ResumeScreensaver();
/// Abstracts platform-specific code for asynchronously playing a sound.
/// On Windows, this will use PlaySound(). On Linux, it will shell out to aplay. On MacOS, it uses NSSound.
bool PlaySoundAsync(const char* path);
} // namespace FrontendCommon