Duckstation/src/frontend-common/platform_misc.h

11 lines
364 B
C
Raw Normal View History

2022-09-21 12:44:52 +00:00
#include "common/window_info.h"
namespace FrontendCommon {
void SuspendScreensaver();
2022-09-21 12:44:52 +00:00
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