@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
29 lines (28 loc) • 1.03 kB
TypeScript
/**
* Controls playback of an audio sample. This class will be deprecated in favor of
* {@link SoundComponentSystem}.
*
* @ignore
*/
export class AudioSourceComponentSystem extends ComponentSystem {
id: string;
ComponentType: typeof AudioSourceComponent;
DataType: typeof AudioSourceComponentData;
schema: string[];
manager: import("../../../index.js").SoundManager;
initialized: boolean;
initializeComponentData(component: any, data: any, properties: any): void;
onInitialize(root: any): void;
onUpdate(dt: any): void;
onRemove(entity: any, data: any): void;
/**
* Set the volume for the entire AudioSource system. All sources will have their volume
* multiplied by this value.
*
* @param {number} volume - The value to set the volume to. Valid from 0 to 1.
*/
setVolume(volume: number): void;
}
import { ComponentSystem } from '../system.js';
import { AudioSourceComponent } from './component.js';
import { AudioSourceComponentData } from './data.js';