在窗体程序中加入了背景音乐,如果交上去别人打开,默认路径不一样运行不了,有什么方法能自动获取文件内音频位置,求解。
private void PlaySound() { SoundPlayer playsound = new SoundPlayer(@"H:\sounds\小星星.wav"); playsound.Play(); }
https://blog.csdn.net/qq_34078945/article/details/65442408