Class: SoundManager

SoundManager


new SoundManager()

Source:

Methods


addSound(soundConfig)

Parameters:
Name Type Description
soundConfig SoundManager.soundConfig
Source:

playSound(girlID, bodyPart, speed)

Parameters:
Name Type Description
girlID string
bodyPart GirlManager.bodyPart
speed 'Slow' | 'Medium' | 'Fast'
Source:

stopAll()

Stops all sound effects

Source:

Type Definitions


soundConfig

Config file used for creating sound effects.

Properties:
Name Type Description
Girl string

ID of girl

ID string

Sound clip ID, used for playing the sound effect that should be stored in the loader

MaxVolume number

The highest the volume should go. Starts at 0, ends at 1

BodyParts Array.<GirlManager.bodyPart>

What body parts should use this sound effect

Speed 'Slow' | 'Medium' | 'Fast'

What speed should this sound effect be categorized as?

Source: