C# 클래스 LitDev.LDSound

파일 보기 프로젝트 열기: litdev1/LitDev 1 사용 예제들

공개 메소드들

메소드 설명
Asterisk ( ) : void

Play system Asterisk sound.

Beep ( ) : void

Play system Beep sound.

Exclamation ( ) : void

Play system Exclamation sound.

Hand ( ) : void

Play system Hand sound.

MusicPlayTime ( Primitive fileName ) : Primitive

Gets the play time for a music file.

Pause ( ) : void

Pause a recording.

Question ( ) : void

Play system Question sound.

Resume ( ) : void

Resume a paused recording.

Start ( ) : void

Start recording sound.

Stop ( Primitive wavFile ) : Primitive

Stop and save current sound recording.

Tone ( Primitive frequency, Primitive duration ) : void

Play a system tone sound with frequency and duration. Uses the motherboard speaker (not the sound card) and may be low quality or not available.

비공개 메소드들

메소드 설명
Beep ( uint dwFreq, uint dwDuration ) : bool
mciSendString ( string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback ) : int

메소드 상세

Asterisk() 공개 정적인 메소드

Play system Asterisk sound.
public static Asterisk ( ) : void
리턴 void

Beep() 공개 정적인 메소드

Play system Beep sound.
public static Beep ( ) : void
리턴 void

Exclamation() 공개 정적인 메소드

Play system Exclamation sound.
public static Exclamation ( ) : void
리턴 void

Hand() 공개 정적인 메소드

Play system Hand sound.
public static Hand ( ) : void
리턴 void

MusicPlayTime() 공개 정적인 메소드

Gets the play time for a music file.
public static MusicPlayTime ( Primitive fileName ) : Primitive
fileName Primitive /// The full path of the music file e.g. "C:\Users\Public\Music\song.mp3". ///
리턴 Primitive

Pause() 공개 정적인 메소드

Pause a recording.
public static Pause ( ) : void
리턴 void

Question() 공개 정적인 메소드

Play system Question sound.
public static Question ( ) : void
리턴 void

Resume() 공개 정적인 메소드

Resume a paused recording.
public static Resume ( ) : void
리턴 void

Start() 공개 정적인 메소드

Start recording sound.
public static Start ( ) : void
리턴 void

Stop() 공개 정적인 메소드

Stop and save current sound recording.
public static Stop ( Primitive wavFile ) : Primitive
wavFile Primitive The full path to a wav file to save the recording. /// The extension will be set to ".wav" if it is not already.
리턴 Primitive

Tone() 공개 정적인 메소드

Play a system tone sound with frequency and duration. Uses the motherboard speaker (not the sound card) and may be low quality or not available.
public static Tone ( Primitive frequency, Primitive duration ) : void
frequency Primitive The tone frequency (from 37 to 32767 Hz).
duration Primitive The tone duration in ms.
리턴 void