sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Dispose of this audio manager.

      Returns void

    • Load an audio file. Cache it, ready for instantaneous playing.

      Parameters

      • filenames: string[]

        List of file types in decreasing order of preference (i.e. increasing size). E.g. ['media/go.mp3', 'media/go.wav'] Filenames include path from Blockly's root. File extensions matter.

      • name: string

        Name of sound.

      Returns void

    • Play a named sound at specified volume. If volume is not specified, use full volume (1).

      Parameters

      • name: string

        Name of sound.

      • Optionalopt_volume: number

        Volume of sound (0-1).

      Returns void

    • Preload all the audio files so that they play quickly when asked for.

      Returns void