Header <Sound/SoundBase.h>
#include "Sound/SoundBase.h"Includes 8
<AudioDefines.h> |
<AudioPropertiesSheetAssetBase.h> |
<CoreMinimal.h> |
<Sound/SoundTimecodeOffset.h> |
<SoundConcurrency.h> |
<UObject/Object.h> |
<UObject/ObjectMacros.h> |
<Interfaces/Interface_AssetUserData.h> |
Contents
USoundBase | The base class for a playable sound object (uclass class : UObject) |
class USoundBase
class USoundBase : public UObject, public IAudioPropertiesSheetAssetUserInterface, public IInterface_AssetUserDataUCLASSconfig=Enginehidecategories=ObjectabstracteditinlinenewBlueprintTypeMinimalAPIThe base class for a playable sound object
Member functions 44
| CanBeClusterRoot | virtual bool CanBeClusterRoot() const override; |
| CanBeInCluster | virtual bool CanBeInCluster() const override; |
| Serialize | virtual void Serialize(FArchive& Ar) override; |
| IsPlayable | virtual bool IsPlayable() const;Returns whether the sound base is set up in a playable manner |
| SupportsSubtitles | virtual bool SupportsSubtitles() const;Returns whether sound supports subtitles. |
| HasAttenuationNode | virtual bool HasAttenuationNode() const;Returns whether or not this sound base has an attenuation node. |
| GetAttenuationSettingsToApply | virtual const FSoundAttenuationSettings* GetAttenuationSettingsToApply() const;Returns a pointer to the attenuation settings that are to be applied for this node |
| GetMaxDistance | virtual float GetMaxDistance() const;Returns the farthest distance at which the sound could be heard |
| GetDuration | virtual float GetDuration() const;Returns the length of the sound |
| HasDelayNode | bool HasDelayNode() const;Returns whether or not this sound has a delay node, which means it's possible for the sound to not generate audio for a while. |
| HasConcatenatorNode | bool HasConcatenatorNode() const;Returns whether or not this sound has a sequencer node, which means it's possible for the owning active sound to persist even though it's not generating audio. |
| IsPlayWhenSilent | virtual bool IsPlayWhenSilent() const;Returns true if any of the sounds in the sound have "play when silent" enabled. |
| GetVolumeMultiplier | virtual float GetVolumeMultiplier(); |
| GetPitchMultiplier | virtual float GetPitchMultiplier(); |
| GetSubtitlePriority | virtual float GetSubtitlePriority() const;Returns the subtitle priority |
| ShouldApplyInteriorVolumes | virtual bool ShouldApplyInteriorVolumes();Returns whether or not any part of this sound wants interior volumes applied to it |
| GetCurveData | virtual class UCurveTable* GetCurveData() const;Returns curves associated with this sound if it has any. By default returns nullptr, but types supporting curves can return a corresponding curve table. |
| IsLooping | virtual bool IsLooping() const;Returns whether or not this sound is looping. TODO: Deprecate this to only use IsOneshot() in a MetaSound world. |
| IsOneShot | virtual bool IsOneShot() const;Query if it's one shot. One shot is defined as a sound which is intended to have a fixed duration. |
| IsProcedurallyGenerated | virtual bool IsProcedurallyGenerated() const;Query if it's a procedurally generated sound. |
| Parse | virtual void Parse(class FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances);Parses the Sound to generate the WaveInstances to play. |
| GetSoundClass | virtual USoundClass* GetSoundClass() const;Returns the SoundClass used for this sound. |
| GetSoundSubmix | virtual USoundSubmixBase* GetSoundSubmix() const;Returns the SoundSubmix used for this sound. |
| GetSoundSubmixSends | void GetSoundSubmixSends(TArray<FSoundSubmixSendInfo>& OutSends) const;Returns the sound submix sends for this sound. |
| GetSoundSourceBusSends | void GetSoundSourceBusSends(EBusSendType BusSendType, TArray<FSoundSourceBusSendInfo>& OutSends) const;Returns the sound source sends for this sound. |
| GetConcurrencyHandles | void GetConcurrencyHandles(TArray<FConcurrencyHandle>& OutConcurrencyHandles) const;Returns an array of FSoundConcurrencySettings handles. |
| GetPriority | float GetPriority() const;Returns the priority to use when evaluating concurrency. |
| GetSoundWavesWithCookedAnalysisData | virtual bool GetSoundWavesWithCookedAnalysisData(TArray<USoundWave*>& OutSoundWaves);Returns whether the sound has cooked analysis data (e.g. FFT or envelope following data) and returns sound waves which have cooked data. |
| HasCookedFFTData | virtual bool HasCookedFFTData() const;Queries if the sound has cooked FFT or envelope data. |
| HasCookedAmplitudeEnvelopeData | virtual bool HasCookedAmplitudeEnvelopeData() const; |
| AddAssetUserData | virtual void AddAssetUserData(UAssetUserData* InUserData) override; |
| RemoveUserDataOfClass | virtual void RemoveUserDataOfClass(TSubclassOf<UAssetUserData> InUserDataClass) override; |
| GetAssetUserDataOfClass | virtual UAssetUserData* GetAssetUserDataOfClass(TSubclassOf<UAssetUserData> InUserDataClass) override; |
| GetAssetUserDataArray | virtual const TArray<UAssetUserData*>* GetAssetUserDataArray() const override; |
| InitParameters | virtual void InitParameters(TArray<FAudioParameter>& ParametersToInit, FName InFeatureName = NAME_None);Called from the Game Thread prior to attempting to pass parameters to the ParameterTransmitter. |
| InitResources | virtual void InitResources();Called from the Game Thread prior to attempting to initialize a sound instance. |
| ImplementsParameterInterface | virtual bool ImplementsParameterInterface(Audio::FParameterInterfacePtr InParameterInterface) const;Whether or not the given sound is a generator and implements an interface with the given name. |
| CreateSoundGenerator | virtual ISoundGeneratorPtr CreateSoundGenerator(const FSoundGeneratorInitParams& InParams);virtual ISoundGeneratorPtr CreateSoundGenerator(const FSoundGeneratorInitParams& InParams, TArray<FAudioParameter>&& InDefaultParameters);Creates a sound generator instance from this sound base. Return true if this is being implemented by a subclass. Sound generators procedurally generate audio in the audio render thread. |
| CreateParameterTransmitter | virtual TSharedPtr<Audio::IParameterTransmitter> CreateParameterTransmitter(Audio::FParameterTransmitterInitParams&& InParams) const;Creates a parameter transmitter for communicating with active sound instances. |
| IsParameterValid | virtual bool IsParameterValid(const FAudioParameter& InParameter) const;Returns whether parameter is valid input for the given sound |
| GetAllDefaultParameters | virtual bool GetAllDefaultParameters(TArray<FAudioParameter>& OutParameters) const;Gets all the default parameters for this Asset. |
| EnableSubmixSendsOnPreview | virtual bool EnableSubmixSendsOnPreview() const;Whether or not this sound allows submix sends on preview. |
| IsAttenuationSettingsEditable | virtual bool IsAttenuationSettingsEditable() const;UFUNCTIONOnly used as an edit condition for AttenuationSettings member, as base classes may choose to provide an attenuation override implementation |
| ComputeMaxDistance | virtual float ComputeMaxDistance() const;protected |