.NET Sound Library is similar to the OpenJDK sound.
$ dotnet add package SoundThis is an implementation of the OpenJDK Java Sound Library ( > Version 8) for .NET Framework 4.6.2 and .NET8 and later versions. .NET Sound is available on NuGet, with Package Id Sound. For using the library Sound.dll you have two choices:
!Note:
dotnet_version is net462 for .NET Framework 4.6.2 dotnet_version is net8.0 for .NET8.0This choice will be the best solution
If you need low level functions for Audio or Midi like they are supported in the OpenJDK Java, then you are in the right project. You can use the documentation of the Java Sound Library (see links below). The differences to the Java Sound Library are shown later. The namespaces in the .NET Sound-library are SystemX.Sound.Sampled, SystemX.Sound.Midi and SystemX.Media.Sound which are similar to the Java packages javax.sound.sampled, javax.sound.midi and com.sun.media.sound. Don't use classes from namespace SystemX.Media.Sound directly.