Class PCSExtensions
Serves as an extension class, with methods relating to the PC speaker (beeper).
Inheritance
System.Object
PCSExtensions
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 static class PCSExtensions
Methods
| Improve this Doc View SourceMsToHz(Int32)
Convert milliseconds (ms) to hertz (Hz).
Declaration
public static uint MsToHz(this int ms)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ms | A milliseconds value, must be > 0. |
Returns
Type | Description |
---|---|
System.UInt32 | The given value, in hertz (Hz). |
MsToHz(UInt32)
Convert milliseconds (ms) to hertz (Hz).
Declaration
public static uint MsToHz(this uint ms)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | ms | A milliseconds value, must be > 0. |
Returns
Type | Description |
---|---|
System.UInt32 | The given value, in hertz (Hz). |