Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Beep() [2/2]

static void System.ConsolePal.Beep ( int frequency,
int duration )
inlinestatic

Definition at line 703 of file ConsolePal.cs.

704 {
705 if (frequency < 37 || frequency > 32767)
706 {
707 throw new ArgumentOutOfRangeException("frequency", frequency, System.SR.Format(System.SR.ArgumentOutOfRange_BeepFrequency, 37, 32767));
708 }
709 if (duration <= 0)
710 {
711 throw new ArgumentOutOfRangeException("duration", duration, System.SR.ArgumentOutOfRange_NeedPosNum);
712 }
713 global::Interop.Kernel32.Beep(frequency, duration);
714 }
static string ArgumentOutOfRange_NeedPosNum
Definition SR.cs:20
static string ArgumentOutOfRange_BeepFrequency
Definition SR.cs:74
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.SR.ArgumentOutOfRange_BeepFrequency, System.SR.ArgumentOutOfRange_NeedPosNum, and System.SR.Format().