We will want our code to be reusable in other. In the following posts, we will introduce Linux and Mac OS compatibilities as well. In this post, we will focus on how to get the base library structure set up and how to play audio if it’s installed on Windows. Fortunately, the process is not prohibitively difficult. NET Core in the most efficient way without loading too many additional components, you can write your own library to do so. Therefore, if you would want to be able to play audio on. You will have to load ASP.NET Core components, Node.js and use NodeServicesto get this solution to work. NET Core on any platform, but it requires quite a few additional dependencies. There is, of course, a reliable way to play sound on. NET Core, the bulk of its functionality is still only available on Windows. Although there is a pre-release version that is available in. Unfortunately, NAudio is not fully compatible with. Likewise, NuGet packages such as NAudio added many extra audio-processing capabilities. NET Framework, you could play sound easily by using classes like SoundPlayer from the standard class library of the framework itself. One of these is the ability to play sound.
This applies to those functionalities that would work radically differently on different platforms under the hood, especially the ones that weren’t the priority for the authors of. NET Core is for writing software for multiple platforms, it lacks some basic capabilities.