Instructions for using the FSound library
Download the FSound starter project
You should be able to unzip this file and run dotnet run
. It will generate some WAV files.
Note: This is a third party library discovered by your classmates. Since it was written for .NET 4.6, I quickly ported it to .NET Core. The WPF library, which FSound depends on for plotting visuals, is not available for .NET Core. Therefore, I removed this functionality.
Additionally, none of the real-time audio functions (e.g., play
or playWave
) of the library work with .NET Core as they depend on the non-portable NAudio library. NAudio depends on Windows-specific code :(
Based on my very limited testing, it is able to generate some of the examples shown on the FSound webpage (the streamToWav
examples). If this is useful to you, feel free to use it, otherwise, do something else.
If you would like to use FSound in your own project:
- Copy the file
bin/Debug/netcoreapp2.1/FSoundCore.dll
into your project’sbin/Debug/netcoreapp2.1
directory (make the directory if you need to). -
Add the following to your
.fsproj
file:<ItemGroup> <Reference Include="FSoundCore"> <HintPath>bin/Debug/netcoreapp2.1/FSoundCore.dll</HintPath> </Reference> </ItemGroup>
- Then, use the library as per the instructions on the FSound webpage.