Octra libraries - v2.0.0
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _bitsPerSample: number
    _blockAlign: number
    _byteRate: number
    _channels: number
    _decoder: "web-audio" | "octra" = 'octra'
    _duration: { samples: number; seconds: number }
    _filename: string
    _mimeType: string
    _sampleRate: number
    _supportedFormats: SupportedAudioFormat[]
    dataStart: number = -1
    formatConstructor:
        | Uint8ArrayConstructor
        | Int16ArrayConstructor
        | Int32ArrayConstructor

    Accessors

    Methods

    • cuts the data part of selected samples from an Uint8Array

      Parameters

      • sampleStart: number

        the start of the extraction

      • sampleDur: number

        the duration of the extraction

      • uint8Array: Uint8Array

        the array to be read

      • OptionalselectedChannel: number

        the selected channel

      Returns Promise<IntArray>