|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Sound Submix class meant for applying an effect to the downmixed sum of multiple audio sources. More...
Public Member Functions | |
Audio | |
| void | SetSubmixWetLevel (float32 InWetLevel) |
| Sets the output volume of the submix in linear gain. This dynamic level acts as a multiplier on the WetLevel property of this submix. | |
| void | SetSubmixOutputVolume (float32 InOutputVolume) |
| Sets the output volume of the submix in linear gain. This dynamic volume acts as a multiplier on the OutputVolume property of this submix. | |
| void | SetSubmixDryLevel (float32 InDryLevel) |
| Sets the output volume of the submix in linear gain. This dynamic level acts as a multiplier on the DryLevel property of this submix. | |
Audio|Analysis | |
| void | StartSpectralAnalysis (EFFTSize FFTSize=EFFTSize ::DefaultSize, EFFTPeakInterpolationMethod InterpolationMethod=EFFTPeakInterpolationMethod ::Linear, EFFTWindowType WindowType=EFFTWindowType ::Hann, float32 HopSize=0.000000, EAudioSpectrumType SpectrumType=EAudioSpectrumType ::MagnitudeSpectrum) |
| Start spectrum analysis of the audio output. | |
| void | StopSpectralAnalysis () |
| Stop spectrum analysis of the audio output. | |
Audio|Bounce | |
| void | StopRecordingOutput (EAudioRecordingExportType ExportType, FString Name, FString Path, USoundWave ExistingSoundWaveToOverwrite=nullptr) |
| Finish recording the audio from this submix and export it as a wav file or a USoundWave. | |
| void | StartRecordingOutput (float32 ExpectedDuration) |
| Start recording the audio from this submix. | |
Audio|EnvelopeFollowing | |
| void | AddEnvelopeFollowerDelegate (FOnSubmixEnvelopeBP OnSubmixEnvelopeBP=FOnSubmixEnvelopeBP()) |
| Adds an envelope follower delegate to the submix when envelope following is enabled on this submix. | |
| void | StopEnvelopeFollowing () |
| Start envelope following the submix output. Register with OnSubmixEnvelope to receive envelope follower data in BP. | |
| void | StartEnvelopeFollowing () |
| Start envelope following the submix output. Register with OnSubmixEnvelope to receive envelope follower data in BP. | |
Audio|Spectrum | |
| void | RemoveSpectralAnalysisDelegate (FOnSubmixSpectralAnalysisBP OnSubmixSpectralAnalysisBP=FOnSubmixSpectralAnalysisBP()) |
| Remove a spectral analysis delegate. | |
| void | AddSpectralAnalysisDelegate (TArray< FSoundSubmixSpectralAnalysisBandSettings > InBandSettings, FOnSubmixSpectralAnalysisBP OnSubmixSpectralAnalysisBP=FOnSubmixSpectralAnalysisBP(), float32 UpdateRate=10.000000, float32 DecibelNoiseFloor=- 40.000000, bool bDoNormalize=true, bool bDoAutoRange=false, float32 AutoRangeAttackTime=0.100000, float32 AutoRangeReleaseTime=60.000000) |
| Adds a spectral analysis delegate to receive notifications when this submix has spectrum analysis enabled. | |
Functions | |
| void | SetbMuteWhenBackgrounded (bool Value) |
| Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted. | |
| bool | GetbSendToAudioLink () const |
| Whether to send this Submix to AudioLink (when AudioLink is Enabled). | |
| void | SetbSendToAudioLink (bool Value) |
| Whether to send this Submix to AudioLink (when AudioLink is Enabled). | |
| bool | GetbMuteWhenBackgrounded () const |
| Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted. | |
| Public Member Functions inherited from USoundSubmixWithParentBase | |
| void | SetbIsDynamic (bool Value) |
| Is Submix Dynamic. (i.e. allows connect/disconnect at runtime.) *. | |
| bool | GetbIsDynamic () const |
| Is Submix Dynamic. (i.e. allows connect/disconnect at runtime.) *. | |
| Public Member Functions inherited from USoundSubmixBase | |
| bool | DynamicDisconnect () |
| Dynamically Disconnect from a parent. | |
| USoundSubmixBase | FindDynamicAncestor () |
| Searching upwards from this Submix to the root looking for the first Submix marked Dynamic If this Submix is Dynamic this will be returned. | |
| bool | DynamicConnect (USoundSubmixBase InParent) |
| Dynamically Connects to a parent submix. | |
| Public Member Functions inherited from UObject | |
| bool | MarkPackageDirty () const |
| void | RemoveFromRoot () |
| bool | GetIsRooted () const |
| bool | IsTransient () const |
| bool | Modify (bool bAlwaysMarkDirty=true) |
| void | SetTransactional (bool bTransactional) |
| bool | IsSupportedForNetworking () const |
| UClass | GetClass () const |
| UObject | GetOuter () const |
| UObject | GetTypedOuter (TSubclassOf< UObject > Target) const |
| Traverses the outer chain searching for the next object of a certain type. | |
| UPackage | GetOutermost () const |
| UPackage | GetPackage () const |
| void | AddToRoot () |
| UWorld | GetWorld () const |
| FName | GetName () const |
| FString | GetFullName (const UObject StopOuter=nullptr) const |
| FString | GetPathName (const UObject StopOuter=nullptr) const |
| bool | IsA (const UClass Class) const |
| Returns true if this object is of the specified type, or a child of that type. | |
| void | SaveConfig () |
| void | LoadConfig () |
| void | ReloadConfig () |
| void | CopyScriptPropertiesFrom (const UObject OtherObject) |
| void | opCast (?&Address) const |
| FString | ToString () const |
Static Public Member Functions | |
Static Functions | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from USoundSubmixWithParentBase | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from USoundSubmixBase | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UObject | |
| static UClass | StaticClass () |
Public Attributes | |
AudioLink | |
| UAudioLinkSettingsAbstract | AudioLinkSettings |
| Optional Audio Link Settings Object. | |
| bool | bSendToAudioLink |
| Whether to send this Submix to AudioLink (when AudioLink is Enabled). | |
EnvelopeFollower | |
| int | EnvelopeFollowerReleaseTime |
| The release time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this submix. | |
| int | EnvelopeFollowerAttackTime |
| The attack time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this submix. | |
SoundSubmix | |
| TArray< TObjectPtr< USoundEffectSubmixPreset > > | SubmixEffectChain |
| bool | bMuteWhenBackgrounded |
| Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted. | |
| USoundfieldEncodingSettingsBase | AmbisonicsPluginSettings |
| Optional settings used by plugins which support ambisonics file playback. | |
SubmixLevel | |
| FSoundModulationDestinationSettings | DryLevelModulation |
| The dry level of the submix in Decibels. Applied before submix effects and analysis are performed. | |
| FSoundModulationDestinationSettings | OutputVolumeModulation |
| The output volume of the submix in Decibels. Applied after submix effects and analysis are performed. | |
| FSoundModulationDestinationSettings | WetLevelModulation |
| The wet level of the submixin Decibels. Applied after submix effects and analysis are performed. | |
Variables | |
| FOnSubmixRecordedFileDone | OnSubmixRecordedFileDone |
| Blueprint delegate for when a recorded file is finished exporting. | |
| Public Attributes inherited from USoundSubmixWithParentBase | |
| bool | bIsDynamic |
| Is Submix Dynamic. (i.e. allows connect/disconnect at runtime.) *. | |
| USoundSubmixBase | ParentSubmix |
| Public Attributes inherited from USoundSubmixBase | |
| float32 | AutoDisableTime |
| The minimum amount of time to wait before automatically disabling a submix if it is silent. Will immediately re-enable if source audio is sent to it. | |
| bool | bAutoDisable |
| Auto-manage enabling and disabling the submix as a CPU optimization. It will be disabled if the submix and all child submixes are silent. It will re-enable if a sound is sent to the submix or a child submix is audible. | |
| TArray< TObjectPtr< USoundSubmixBase > > | ChildSubmixes |
| Child submixes to this sound mix. | |
| Public Attributes inherited from UObject | |
| const UClass | Class |
| const UObject | Outer |
| const UPackage | Outermost |
| const UPackage | Package |
| const UWorld | World |
| const FName | Name |
| const bool | IsRooted |
Sound Submix class meant for applying an effect to the downmixed sum of multiple audio sources.
| void AddEnvelopeFollowerDelegate | ( | FOnSubmixEnvelopeBP | OnSubmixEnvelopeBP = FOnSubmixEnvelopeBP ( ) | ) |
Adds an envelope follower delegate to the submix when envelope following is enabled on this submix.
| OnSubmixEnvelopeBP | Event to fire when new envelope data is available. |
| void AddSpectralAnalysisDelegate | ( | TArray< FSoundSubmixSpectralAnalysisBandSettings > | InBandSettings, |
| FOnSubmixSpectralAnalysisBP | OnSubmixSpectralAnalysisBP = FOnSubmixSpectralAnalysisBP ( ), | ||
| float32 | UpdateRate = 10.000000, | ||
| float32 | DecibelNoiseFloor = - 40.000000, | ||
| bool | bDoNormalize = true, | ||
| bool | bDoAutoRange = false, | ||
| float32 | AutoRangeAttackTime = 0.100000, | ||
| float32 | AutoRangeReleaseTime = 60.000000 ) |
Adds a spectral analysis delegate to receive notifications when this submix has spectrum analysis enabled.
| InBandSettings | The frequency bands to analyze and their envelope-following settings. |
| OnSubmixSpectralAnalysisBP | Event to fire when new spectral data is available. |
| UpdateRate | How often to retrieve the data from the spectral analyzer and broadcast the event. Max is 30 times per second. |
| DecibelNoiseFloor | Decibel Noise Floor to consider as silence when using a Decibel Spectrum Type. |
| bDoNormalize | If true, output band values will be normalized between zero and one. |
| bDoAutoRange | If true, output band values will have their ranges automatically adjusted to the minimum and maximum values in the audio. Output band values will be normalized between zero and one. |
| AutoRangeAttackTime | The time (in seconds) it takes for the range to expand to 90% of a larger range. |
| AutoRangeReleaseTime | The time (in seconds) it takes for the range to shrink to 90% of a smaller range. |
| bool GetbMuteWhenBackgrounded | ( | ) | const |
Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted.
| bool GetbSendToAudioLink | ( | ) | const |
Whether to send this Submix to AudioLink (when AudioLink is Enabled).
| void RemoveSpectralAnalysisDelegate | ( | FOnSubmixSpectralAnalysisBP | OnSubmixSpectralAnalysisBP = FOnSubmixSpectralAnalysisBP ( ) | ) |
Remove a spectral analysis delegate.
| OnSubmixSpectralAnalysisBP | The event delegate to remove. |
| void SetbMuteWhenBackgrounded | ( | bool | Value | ) |
Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted.
| void SetbSendToAudioLink | ( | bool | Value | ) |
Whether to send this Submix to AudioLink (when AudioLink is Enabled).
| void SetSubmixDryLevel | ( | float32 | InDryLevel | ) |
Sets the output volume of the submix in linear gain. This dynamic level acts as a multiplier on the DryLevel property of this submix.
| void SetSubmixOutputVolume | ( | float32 | InOutputVolume | ) |
Sets the output volume of the submix in linear gain. This dynamic volume acts as a multiplier on the OutputVolume property of this submix.
| void SetSubmixWetLevel | ( | float32 | InWetLevel | ) |
Sets the output volume of the submix in linear gain. This dynamic level acts as a multiplier on the WetLevel property of this submix.
| void StartEnvelopeFollowing | ( | ) |
Start envelope following the submix output. Register with OnSubmixEnvelope to receive envelope follower data in BP.
| void StartRecordingOutput | ( | float32 | ExpectedDuration | ) |
Start recording the audio from this submix.
| void StartSpectralAnalysis | ( | EFFTSize | FFTSize = EFFTSize :: DefaultSize, |
| EFFTPeakInterpolationMethod | InterpolationMethod = EFFTPeakInterpolationMethod :: Linear, | ||
| EFFTWindowType | WindowType = EFFTWindowType :: Hann, | ||
| float32 | HopSize = 0.000000, | ||
| EAudioSpectrumType | SpectrumType = EAudioSpectrumType :: MagnitudeSpectrum ) |
Start spectrum analysis of the audio output.
|
static |
| void StopEnvelopeFollowing | ( | ) |
Start envelope following the submix output. Register with OnSubmixEnvelope to receive envelope follower data in BP.
| void StopRecordingOutput | ( | EAudioRecordingExportType | ExportType, |
| FString | Name, | ||
| FString | Path, | ||
| USoundWave | ExistingSoundWaveToOverwrite = nullptr ) |
Finish recording the audio from this submix and export it as a wav file or a USoundWave.
| void StopSpectralAnalysis | ( | ) |
Stop spectrum analysis of the audio output.
| USoundfieldEncodingSettingsBase AmbisonicsPluginSettings |
Optional settings used by plugins which support ambisonics file playback.
| UAudioLinkSettingsAbstract AudioLinkSettings |
Optional Audio Link Settings Object.
| bool bMuteWhenBackgrounded |
Mute this submix when the application is muted or in the background. Used to prevent submix effect tails from continuing when tabbing out of application or if application is muted.
| bool bSendToAudioLink |
Whether to send this Submix to AudioLink (when AudioLink is Enabled).
| FSoundModulationDestinationSettings DryLevelModulation |
The dry level of the submix in Decibels. Applied before submix effects and analysis are performed.
| int EnvelopeFollowerAttackTime |
The attack time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this submix.
| int EnvelopeFollowerReleaseTime |
The release time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this submix.
| FOnSubmixRecordedFileDone OnSubmixRecordedFileDone |
Blueprint delegate for when a recorded file is finished exporting.
| FSoundModulationDestinationSettings OutputVolumeModulation |
The output volume of the submix in Decibels. Applied after submix effects and analysis are performed.
| TArray<TObjectPtr<USoundEffectSubmixPreset> > SubmixEffectChain |
| FSoundModulationDestinationSettings WetLevelModulation |
The wet level of the submixin Decibels. Applied after submix effects and analysis are performed.