프로퍼티 | 타입 | 설명 | |
---|---|---|---|
FileName | string | ||
Player | SoundPlayer | ||
ResourceName | string | ||
SystemSound | SystemSound |
메소드 | 설명 | |
---|---|---|
Audio ( ) : System |
Create an empty Audio object
|
|
Audio ( SystemSound sound ) : System |
Creates an Audio object that will play the given system sound
|
|
Audio ( string fileName ) : System |
Creates an Audio object that will play the given "wav" file
|
|
FromResource ( string resourceName ) : |
Load a sound from a named resource. To embed a wav file, simple add it to the project, and change "Build Action" to "Embedded Resource". |
|
Start ( ) : void |
Start the sound playing
|
|
Stop ( ) : void |
Stop the sound
|
|
Tick ( long elapsed ) : bool |
Advance the audio and return if it is done.
|
public static FromResource ( string resourceName ) : |
||
resourceName | string | The name of the resource including the trailing ".wav" |
리턴 |