using System;
using System.Media;

class Program
{
static void Main()
{
string path = @”C:\WINDOWS\Media\tada.wav”;
SoundPlayer wavePlayer = new SoundPlayer(path);
wavePlayer.PlaySync();
Console.WriteLine(“再生完了”);
}
}

Notes