/// <summary> /// Emit a beep. /// </summary> /// <param name="frequency">Frequency in hertz.</param> /// <param name="duration">Duration in milliseconds.</param> public static void Beep(uint frequency, uint duration) { if (!Direct.Beep(frequency, duration)) { throw ErrorHelper.GetIoExceptionForLastError(); } }