nie wiem czy klasa SoundPlayer() nie ma jakiejś metody która zwraca, czy jest stop czy play(być może ma), ale jeśli nie, użyj zmiennej pomocniczej x.
public partial class Form1 : Form
{
System.Media.SoundPlayer myPlayer;
bool x;
public Form1()
{
x=true;
InitializeComponent();
myPlayer = new System.Media.SoundPlayer();
myPlayer.SoundLocation = @"C:\Users\maciek\Desktop\PROJEKT\WindowsFormsApplication1\chord.wav";
myPlayer.Play();
}
private void button1_Click(object sender, EventArgs e)
{
if(x==true){
myPlayer.Stop();
x=false;
button1.text="Włącz muzyke";
}
else{
myPlayer.Play();
x=true;
button1.text="wyłącz muzyke";
}
}
}