SerializedTypes
Types used to Serialize sounds into the Schema.
INFO
- The library uses
ReflectionServiceinternally to apply and get properties so types may not be 100% accurate. - To save space and increase performance
SoundDefinitionshave default properties shaved off. SoundGroupis applied directly on startup.
Types
SoundDefinitions
A dictionary of sound names for fetching SoundDefinitions.
SoundDefinition
interface SoundDefinition {EffectsCount: number--
Amount of SoundEffects in the SoundDefinition.
}Fully Serialized Sound.
SoundChildrenSerialized
interface SoundChildrenSerialized {ChorusSoundEffect: ChorusSoundEffectSerialized?CompressorSoundEffect: CompressorSoundEffectSerialized?DistortionSoundEffect: DistortionSoundEffectSerialized?EchoSoundEffect: EchoSoundEffectSerialized?EqualizerSoundEffect: EqualizerSoundEffectSerialized?FlangeSoundEffect: FlangeSoundEffectSerialized?PitchShiftSoundEffect: PitchShiftSoundEffectSerialized?ReverbSoundEffect: ReverbSoundEffectSerialized?TremoloSoundEffect: TremoloSoundEffectSerialized?}Table of serialized SoundEffects for the SoundDefinition.
SoundSerialized
interface SoundSerialized {Name: stringSoundGroup: SoundGroup?AcousticSimulationEnabled: boolean?Looped: boolean?LoopRegion: NumberRange?PlaybackRegion: NumberRange?PlaybackRegionsEnabled: boolean?PlaybackSpeed: number?Playing: boolean?PlayOnRemove: boolean?RollOffMaxDistance: number?RollOffMinDistance: number?RollOffMode: Enum.RollOffMode?SoundId: string?TimePosition: number?Volume: number?}
The properties of a Sound. Only Name is always present; every other property is left out when it equals the
class default. Parent, Archivable, attributes, tags, read-only state and deprecated properties are never
stored.
ChorusSoundEffectSerialized
interface ChorusSoundEffectSerialized {Depth: numberMix: numberRate: numberEnabled: booleanPriority: numberName: string}Serialized ChorusSoundEffect Instance.
CompressorSoundEffectSerialized
interface CompressorSoundEffectSerialized {Attack: numberGainMakeup: numberRatio: numberRelease: numberThreshold: numberEnabled: booleanPriority: numberName: string}Serialized CompressorSoundEffect Instance.
DistortionSoundEffectSerialized
interface DistortionSoundEffectSerialized {Level: numberEnabled: booleanPriority: numberName: string}Serialized DistortionSoundEffect Instance.
EchoSoundEffectSerialized
interface EchoSoundEffectSerialized {Delay: numberFeedback: numberWetLevel: numberDryLevel: numberEnabled: booleanPriority: numberName: string}Serialized EchoSoundEffect Instance.
EqualizerSoundEffectSerialized
interface EqualizerSoundEffectSerialized {HighGain: numberLowGain: numberMidGain: numberEnabled: booleanPriority: numberName: string}Serialized EqualizerSoundEffect Instance.
FlangeSoundEffectSerialized
interface FlangeSoundEffectSerialized {Depth: numberMix: numberRate: numberEnabled: booleanPriority: numberName: string}Serialized FlangeSoundEffect Instance.
PitchShiftSoundEffectSerialized
interface PitchShiftSoundEffectSerialized {Octave: numberEnabled: booleanPriority: numberName: string}Serialized PitchShiftSoundEffect Instance.
ReverbSoundEffectSerialized
interface ReverbSoundEffectSerialized {DecayTime: numberDensity: numberDiffusion: numberDryLevel: numberWetLevel: numberEnabled: booleanPriority: numberName: string}Serialized ReverbSoundEffect Instance.
TremoloSoundEffectSerialized
interface TremoloSoundEffectSerialized {Depth: numberDuty: numberFrequency: numberEnabled: booleanPriority: numberName: string}Serialized TremoloSoundEffect Instance.