Skip to main content

SoundManagerOptions <Channel, SoundName>

Index

Properties

optionalchannels

channels?: readonly Channel[]

Optionally specify the possible channels to avoid typo's

sounds

sounds: Record<SoundName, Sound | SoundConfig<NoInfer<Channel>>>

Optionally set the max volume for a sound to be when played. All other volume operations will be a fraction of the mix.

You may also add a list of string channels to do group operations to sounds at once. For example mute all 'background' sounds.

optionalvolume

volume?: number

Optionally set the default maximum volume for all sounds

Default is 1 (100%)

Page Options