API Reference

Class List

pc.SoundManager

The SoundManager is used to load and play audio. As well as apply system-wide settings like global volume, suspend and resume.

Summary

Properties

volumeGlobal volume for the manager.

Details

Constructor

SoundManager([options])

Creates a new sound manager.

Parameters

optionsObjectOptions options object.
options.forceWebAudioApiBooleanAlways use the Web Audio API even check indicates that it if not available

Properties

Numbervolume

Global volume for the manager. All pc.SoundInstances will scale their volume with this volume. Valid between [0, 1].