CML
    Preparing search index...

    Function createAudioSampleEntryReader

    • Creates a reader function for AudioSampleEntryBox with a custom type.

      This utility allows reading audio sample entry boxes with types that aren't in the standard AudioSampleEntryType union (e.g., 'mp4a', 'enca').

      Type Parameters

      • T extends string

      Parameters

      • type: T

        The 4-character box type

      Returns (view: IsoBoxReadView) => AudioSampleEntryBox<T>

      A reader function that can be passed to readIsoBoxes

      const boxes = readIsoBoxes(data, {
      readers: {
      'ac-3': createAudioSampleEntryReader('ac-3'),
      'ec-3': createAudioSampleEntryReader('ec-3'),
      }
      })