This library is a port of DrPetter's sfxr sound generator from C++ to C#.
It provides a simple way to synthesize and play sound effects.
Playback is provided by Mark Heath's amazing NAudio library.
Minimal example is:
using (var mixer = new PewPewMixer())
{
await mixer.PlayAsync(new PewPewPatch());
}
You can play many sounds through the mixer before disposing it. It supports polyphony (more than one sound can be playing a given moment in time).
To customise the sound, modify the PewPewPatch
object before
calling PlayAsync
.