Table of Contents

Enum SoundFileMajorFormat

Namespace
NAudio.SoundFile
Assembly
NAudio.SoundFile.dll

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 = 1

Apple/SGI AIFF.

Au = 2

Sun/NeXT AU.

Caf = 3

Apple Core Audio Format.

Flac = 6

FLAC (requires libsndfile built with libFLAC).

Mp3 = 9

MPEG audio, Layer III (libsndfile ≥ 1.1.0).

OggVorbis = 7

Ogg container with the Vorbis codec (requires libvorbis).

Opus = 8

Ogg container with the Opus codec (libsndfile ≥ 1.0.29 + libopus).

Raw = 5

Headerless raw PCM (defaults to 16-bit PCM if no subtype is set).

W64 = 4

Sony Wave64.

Wav = 0

Microsoft WAV (RIFF).