Enum SoundFileMajorFormat
The container / codec a SoundFileWriter produces. This is the discoverable, NAudio-idiomatic way to pick an output format; power users who need a format libsndfile supports but this enum omits can use the raw-int writer constructor instead.
public enum SoundFileMajorFormat
Fields
Aiff = 1Apple/SGI AIFF.
Au = 2Sun/NeXT AU.
Caf = 3Apple Core Audio Format.
Flac = 6FLAC (requires libsndfile built with libFLAC).
Mp3 = 9MPEG audio, Layer III (libsndfile ≥ 1.1.0).
OggVorbis = 7Ogg container with the Vorbis codec (requires libvorbis).
Opus = 8Ogg container with the Opus codec (libsndfile ≥ 1.0.29 + libopus).
Raw = 5Headerless raw PCM (defaults to 16-bit PCM if no subtype is set).
W64 = 4Sony Wave64.
Wav = 0Microsoft WAV (RIFF).