Page MenuHomeFeedback Tracker

Manipulate sound controllers from script
New, UrgentPublic

Description

Currently (1.02) you can only specify a value for a sound controller variable (such as rpm, speed used for the cars) using the SoundObjectBuilder instance before playing the sound. Once the sound is playing you can not adjust the variables anymore.
Though the car class has a OnSound event for this, this concept should apply to other types of objects or also sounds that are entirely just played from script with no connection to any object.
Suggestion: Add the SetVariable interface featured in SoundObjectBuilder to the AbstractWave class

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Apr 23 2019, 1:13 PM

Alternatively, add a function "SetFrequency" to the AbstractWave class. Since volume can already be controlled via script this would then give total control over both. The formulas for calculating both volume and frequency can be done in enscript then.