Property | Type | Description | |
---|---|---|---|
FileName | string | ||
Player | SoundPlayer | ||
ResourceName | string | ||
SystemSound | SystemSound |
Method | Description | |
---|---|---|
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" |
return |