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

    Constructors

    Properties

    formatConstructor:
        | Uint8ArrayConstructor
        | Int16ArrayConstructor
        | Int32ArrayConstructor
    onaudiocut: Subject<
        { fileName: string; finishedSegments: number; intArray: Uint8Array },
    > = ...

    Methods

    • Parameters

      Returns Promise<{ fileName: string; uint8Array: Uint8Array<ArrayBufferLike> }>

    • Parameters

      • namingConvention: string
      • buffer: Float32Array
      • segments: NumeratedSegment[]
      • pointer: number = 0

      Returns void

    • 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>

    • Parameters

      • data: Int16Array
      • channels: number

      Returns ArrayBuffer

    • Parameters

      • filename: string
      • selectedChannels: number[]
      • buffer: ArrayBuffer
      • OptionalchannelData: Float32Array<ArrayBufferLike>[]

      Returns Promise<File[]>