Class PCSpeaker
Represents the internal PC speaker/beeper.
Inheritance
System.Object
PCSpeaker
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public class PCSpeaker
Methods
| Improve this Doc View SourceBeep()
Plays a beep sound, at 800hz for one eighth.
Declaration
public static void Beep()
Beep(Notes)
Plays a beep sound, at a specified frequency for one eighth.
Declaration
public static void Beep(Notes note)
Parameters
Type | Name | Description |
---|---|---|
Notes | note | A note to play. |
Beep(Notes, Durations)
Plays a beep sound, at a specified note for a specified duration.
Declaration
public static void Beep(Notes note, Durations duration)
Parameters
Type | Name | Description |
---|---|---|
Notes | note | A note to play. |
Durations | duration | Beep duration, must be > 0. |
Beep(UInt32)
Plays a beep sound, at a specified frequency for one eighth.
Declaration
public static void Beep(uint frequency)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | frequency | Audio frequency in Hz, must be between 37 and 32767Hz. |
Beep(UInt32, UInt32)
Plays a beep sound, at a specified frequency for a specified duration.
Declaration
public static void Beep(uint frequency, uint duration)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | frequency | Audio frequency in Hz, must be between 37 and 32767Hz. |
System.UInt32 | duration | Beep duration, must be > 0. |