I'm trying to play a sound inside a .Net Core console application and I can't figure this out.
I am looking for something managed inside the .Net Core environment, maybe like regular .Net :
// Not working on .Net Core
System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:mywavfile.wav");
player.Play();
Found an issue on dotnet core Github where they talk about it.
https://github.com/dotnet/core/issues/74
They say there is no high-level API for audio playback but the issue is 9 months old, so I hope there is something new ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…