gameforge - v0.1.12
    Preparing search index...

    Interface IMedia

    Interface represents either a WebAudio source or an HTML5 AudioElement source

    interface IMedia {
        context: IMediaContext;
        duration: number;
        filters: PixiSound.Filter[];
        isPlayable: boolean;
        create(): IMediaInstance;
        destroy(): void;
        init(sound: Sound): void;
        load(callback?: LoadedCallback): void;
    }

    Implemented by

    Index

    Properties

    context: IMediaContext

    Reference to the context.

    duration: number

    Length of sound in seconds.

    filters: PixiSound.Filter[]

    Collection of global filters

    isPlayable: boolean

    Flag to check if sound is currently playable (e.g., has been loaded/decoded).

    Methods

    • Returns void

    • Parameters

      Returns void

    • Parameters

      • Optionalcallback: LoadedCallback

      Returns void