Options
All
  • Public
  • Public/Protected
  • All
Menu

Tee'd audio capture.

Hierarchy

Index

Constructors

constructor

Properties

Optional onclose

onclose?: () => void

Type declaration

    • (): void
    • Returns void

Readonly parent

parent: AudioCapture

Methods

close

  • close(): void

emitEvent

  • emitEvent(ev: string, arg: any): void
  • Emit this event.

    Parameters

    • ev: string

      Event name to emit.

    • arg: any

      Argument to the event handler(s).

    Returns void

getSampleRate

  • getSampleRate(): number

getVADState

off

on

  • Set an event handler.

    Parameters

    • ev: string

      Event name, or "*" for all events.

    • handler: EventHandler

      Event handler for this event.

    Returns void

once

  • Set a one-time event handler.

    Parameters

    • ev: string

      Event name, or "*" for all events.

    • handler: EventHandler

      Event handler for this event.

    Returns void

pipe

  • pipe(to: MessagePort): void
  • Redirect data to this MessagePort. This may suppress all future "data" messages, or may not.

    Parameters

    • to: MessagePort

    Returns void

tee

Generated using TypeDoc