Hierarchy (view full)

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

  • get duration(): {
        samples: number;
        seconds: number;
    }
  • Returns {
        samples: number;
        seconds: number;
    }

    • samples: number
    • seconds: number

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>