![]() |
Touch
|
The TouchTone type exposes the following members.
Name | Description | |
---|---|---|
![]() | TouchTone(Char) | Constructs a new TouchTone for specified touch tone key character. |
![]() | TouchTone(Int32) | Constructs a new TouchTone for specified touch tone key number. |
![]() | TouchTone(TouchToneKey) | Constructs a new TouchTone for specified touch tone key. |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() ![]() | GetTouchTones(String) | Get array of touch tones for given string. |
![]() ![]() | GetTouchTones(String, Double, Double) | Get array of touch tones for given string. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
![]() ![]() | Parse | Converts the character representation of a touch tone key into an instance of the TouchTone class. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
![]() ![]() | TryParse | Converts the character representation of a touch tone key into an instance of the TouchTone class. A return value indicates whether the conversion succeeded. |
Name | Description | |
---|---|---|
![]() ![]() | DefaultInterKeyPause | Default duration, in seconds, of pause between touch tones. |
![]() ![]() | DefaultKeyDuration | Default duration, in seconds, of touch tones. |
![]() | Duration | Frequency duration, in seconds, of DTMF. (Inherited from DTMF) |
![]() | HighFrequency | High frequency of DTMF. (Inherited from DTMF) |
![]() | LowFrequency | Low frequency of DTMF. (Inherited from DTMF) |
![]() ![]() | ValidTouchTones | Valid touch tone keys. |
Name | Description | |
---|---|---|
![]() | GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
![]() | GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |
using System; using GSF.Media; using GSF.Media.Sound; static class Program { static void Main() { WaveFile waveFile = new WaveFile(SampleRate.Hz8000, BitsPerSample.Bits16, DataChannels.Mono); double volume = 0.25D; // Set volume of TouchTone to 25% of maximum string phoneNumber = "9, 1 (535) 217-1631"; // Generate touch tones for specified phone number DTMF.Generate(waveFile, TouchTone.GetTouchTones(phoneNumber), volume); Console.WriteLine("Dialing {0}...", phoneNumber); waveFile.Play(); Console.ReadKey(); } }