当我正在播放声音文件时,我一直试图在我的控制台应用程序上显示文本,歌词就是一个例子。如何做到最好?
hdfs-site
答案 0 :(得分:0)
将PlaySync替换为播放
struct Music
{
public
void PlaySong() {
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = @"C:\Users\MyPC\Music\MoreMusic\songsample.wav";
player.Load();
player.Play();
}
}