Inferred sound handling
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
using System.Media;
|
||||
|
||||
namespace WinGreed
|
||||
{
|
||||
public partial class frmStart : Form
|
||||
@ -64,5 +66,17 @@ namespace WinGreed
|
||||
btnAddOk.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void PlaySomething()
|
||||
{
|
||||
var soundPlayer = new SoundPlayer();
|
||||
soundPlayer.SoundLocation = @"C:\Users\tommy\Downloads\smartsound_HUMAN_CROWD_Applause_Short.wav";
|
||||
soundPlayer.Play();
|
||||
}
|
||||
|
||||
private void btnSound_Click(object sender, EventArgs e)
|
||||
{
|
||||
PlaySomething();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user