Vixen
02b45cc4
csharp
public static class AudioPacketDecoderRegistry

Which audio codecs this process can pull out of a container.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The same arrangement VideoCodecRegistry has, deliberately: a video's picture and its sound are two codecs in one file, and having one of them be a registry and the other a hard-coded switch would be an asymmetry with no reason behind it.

Only the uncompressed cases are registered by default. That is the whole promise of this module — a game that plays one uncompressed sting links no codec — and it is why Opus lives in Vixen.Video.Codecs, which pulls in Concentus, rather than here.

Methods (3)

  • public static void Register(IAudioPacketDecoderFactory factory)

    Adds a codec, ahead of everything already registered.

  • public static bool TryCreate(in AudioTrackInfo track, out IAudioPacketDecoder? decoder)

    Finds a decoder for a track.

  • public static IReadOnlyList<string> RegisteredNames()

    The names of every registered codec, for a log line that explains a failure.

Used by (3)

  • MatroskaAudioStreamDecoderVixen.Video
  • OpusAudioTrackTestsVixen.Video.Codecs.Tests
  • VideoAudioCodecsVixen.Video.Codecs