메소드 | 설명 | |
---|---|---|
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 |
public static MusicPlayTime ( Primitive fileName ) : Primitive | ||
fileName | Primitive | /// The full path of the music file e.g. "C:\Users\Public\Music\song.mp3". /// |
리턴 | Primitive |
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 |
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 |