C# 클래스 GSF.Media.Sound.DTMF

Dual Tone Multi-Frequency Class.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Duration double
HighFrequency double
LowFrequency double

공개 메소드들

메소드 설명
ComputeFrequencies ( DTMF tone, long sampleIndex, int sampleRate ) : double

Computes a dual-tone multi-frequency sound for the given DTMF information and time.

This method computes an amplitude representing the acoustic pressure of a DTMF of the given frequency for the given time.

DTMF ( ) : System

Constructs a new DTMF.

DTMF ( double lowFrequency, double highFrequency, double duration ) : System

Constructs a new DTMF using specified parameters.

Generate ( WaveFile destination, DTMF tone, double volume ) : void

Generates the specified dual-tone multi-frequency storing it in the specified WaveFile.

Generate ( WaveFile destination, DTMF tone, double volume, int repeatCount ) : void

Generates the specified dual-tone multi-frequency repeatCount times storing it in the specified WaveFile.

메소드 상세

ComputeFrequencies() 공개 정적인 메소드

Computes a dual-tone multi-frequency sound for the given DTMF information and time.
This method computes an amplitude representing the acoustic pressure of a DTMF of the given frequency for the given time.
public static ComputeFrequencies ( DTMF tone, long sampleIndex, int sampleRate ) : double
tone DTMF Instance of the specifying the duration as well as the low and high frequencies of the dual-tone.
sampleIndex long Sample index (represents time anywhere from zero to full length of tone).
sampleRate int Number of samples per second.
리턴 double

DTMF() 공개 메소드

Constructs a new DTMF.
public DTMF ( ) : System
리턴 System

DTMF() 공개 메소드

Constructs a new DTMF using specified parameters.
public DTMF ( double lowFrequency, double highFrequency, double duration ) : System
lowFrequency double A low frequency value.
highFrequency double A high frequency value.
duration double A duration value.
리턴 System

Generate() 공개 정적인 메소드

Generates the specified dual-tone multi-frequency storing it in the specified WaveFile.
public static Generate ( WaveFile destination, DTMF tone, double volume ) : void
destination WaveFile used to store generated dual-tone multi-frequencies.
tone DTMF Dual-tone multi-frequency to generate.
volume double Volume of generated dual-tones as a percentage (0 to 1).
리턴 void

Generate() 공개 정적인 메소드

Generates the specified dual-tone multi-frequency repeatCount times storing it in the specified WaveFile.
public static Generate ( WaveFile destination, DTMF tone, double volume, int repeatCount ) : void
destination WaveFile used to store generated dual-tone multi-frequencies.
tone DTMF Dual-tone multi-frequency to generate.
volume double Volume of generated dual-tones as a percentage (0 to 1).
repeatCount int Number of times to repeat the tone.
리턴 void

프로퍼티 상세

Duration 공개적으로 프로퍼티

Frequency duration, in seconds, of DTMF.
public double Duration
리턴 double

HighFrequency 공개적으로 프로퍼티

High frequency of DTMF.
public double HighFrequency
리턴 double

LowFrequency 공개적으로 프로퍼티

Low frequency of DTMF.
public double LowFrequency
리턴 double