public interface IAudioDecoderTurns an authoring audio format into samples the engine can work with.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The same seam as IImageDecoder, for the same reason and with the same history behind it: doc 01 named a codec, the codec turned out to be unusable, and the swap cost one class because nothing above the interface knew which one it was. Audio has more codec churn than images, not less — Vorbis, Opus, FLAC and MP3 each have several managed implementations with different licences.
Everything decodes to an AudioClip in whatever format the file naturally holds. Converting between formats, mixing to mono and every other policy is the importer's business, so a decoder is only ever asked to read a file correctly.
Fields and properties (1)
IReadOnlyList<string> ExtensionsWhich extensions it reads, lowercase and with their leading dots.
Methods (1)
AudioClip Decode(Stream stream, string extension)Decodes a file.
Used by (3)
- AudioDecodersVixen.Editor.Assets
- AudioImporterVixen.Editor.Assets
- WaveDecoderVixen.Editor.Assets