Options
All
  • Public
  • Public/Protected
  • All
Menu

Mixes audio from different sources and allows them all to be controlled as a unit.

Hierarchy

  • Mixer

Index

Constructors

Properties

Constructors

constructor

  • new Mixer(sampleRate: number, bitsPerSample: 8 | 16 | 24 | 32, numChannels?: number): Mixer
  • Construct a new mixer with the given parameters.

    Parameters

    • sampleRate: number

      The sample rate of the audio produced by the mixer, in Hz.

    • bitsPerSample: 8 | 16 | 24 | 32

      Number of bits per sample.

    • Optional numChannels: number

      Number of independent sound channels in the mixer output.

    Returns Mixer

Properties

volume

volume: number

The output volume of the mixer. 0.0 is silent, 1.0 is full volume.

Static Default

Default: Mixer

The default CD-quality mixer provided by the engine.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc