PlaySound function winmm

bool PlaySound(
  1. PCWSTR? pszSound,
  2. HMODULE? hmod,
  3. SND_FLAGS fdwSound
)

Plays a sound specified by the given file name, resource, or system event.

To learn more, see learn.microsoft.com/previous-versions//dd743680(v=vs.85).

Implementation

@pragma('vm:prefer-inline')
bool PlaySound(PCWSTR? pszSound, HMODULE? hmod, SND_FLAGS fdwSound) =>
    _PlaySound(pszSound ?? nullptr, hmod ?? nullptr, fdwSound) != FALSE;