API Reference

Class List

pc.SoundComponentSystem

Extends: pc.ComponentSystem

Manages creation of pc.SoundComponents.

Summary

Properties

contextGets the AudioContext currently used by the sound manager.
managerGets / sets the sound manager
volumeSets / gets the volume for the entire Sound system.

Inherited

Details

Constructor

SoundComponentSystem(app, manager)

Create a SoundComponentSystem

Parameters

apppc.ApplicationThe Application
managerpc.SoundManagerThe sound manager

Properties

AudioContextcontext

Gets the AudioContext currently used by the sound manager. Requires Web Audio API support.

pc.SoundManagermanager

Gets / sets the sound manager

Numbervolume

Sets / gets the volume for the entire Sound system. All sounds will have their volume multiplied by this value. Valid between [0, 1].

Inherited