Codec enum Null safety

Inheritance

Constructors

Codec()
const

Values

defaultCodec → const Codec

This is the default codec. If used Flutter Sound will use the files extension to guess the codec. If the file extension doesn't match a known codec then Flutter Sound will throw an exception in which case you need pass one of the known codec.

const Codec(0)
aacADTS → const Codec

AAC codec in an ADTS container

const Codec(1)
opusOGG → const Codec

OPUS in an OGG container

const Codec(2)
opusCAF → const Codec

Apple encapsulates its bits in its own special envelope .caf instead of a regular ogg/opus (.opus). This is completely stupid, this is Apple.

const Codec(3)
mp3 → const Codec

For those who really insist about supporting MP3. Shame on you !

const Codec(4)
vorbisOGG → const Codec

VORBIS in an OGG container

const Codec(5)
pcm16 → const Codec

Linear 16 PCM, without envelope

const Codec(6)
pcm16WAV → const Codec

Linear 16 PCM, which is a Wave file.

const Codec(7)
pcm16AIFF → const Codec

Linear 16 PCM, which is a AIFF file

const Codec(8)
pcm16CAF → const Codec

Linear 16 PCM, which is a CAF file

const Codec(9)
flac → const Codec

FLAC

const Codec(10)
aacMP4 → const Codec

AAC in a MPEG4 container

const Codec(11)
amrNB → const Codec

AMR-NB

const Codec(12)
amrWB → const Codec

AMR-WB

const Codec(13)
pcm8 → const Codec

Raw PCM Linear 8

const Codec(14)
pcmFloat32 → const Codec

Raw PCM with 32 bits Floating Points

const Codec(15)
pcmWebM → const Codec

PCM with a WebM format

const Codec(16)
opusWebM → const Codec

Opus with a WebM format

const Codec(17)
vorbisWebM → const Codec

Vorbis with a WebM format

const Codec(18)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Codec>
A constant List of the values in this enum, in order of their declaration.
[defaultCodec, aacADTS, opusOGG, opusCAF, mp3, vorbisOGG, pcm16, pcm16WAV, pcm16AIFF, pcm16CAF, flac, aacMP4, amrNB, amrWB, pcm8, pcmFloat32, pcmWebM, opusWebM, vorbisWebM]