Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 877 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 877 Bytes

pew-pew

PewPew NuGet version PewPew NuGet download count

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.

Usage

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.