|
CriWare Unreal Engine
Plug-ins for CriWare solutions.
|
#include "CoreMinimal.h"#include "Engine/EngineTypes.h"#include "UObject/ObjectMacros.h"#include "Components/SceneComponent.h"#include "Math/RandomStream.h"#include "Sound/QuartzSubscription.h"#include "Runtime/Launch/Resources/Version.h"#include "HAL/CriticalSection.h"#include "Atom.h"#include "AtomParameter.h"#include "AtomAttenuation.h"#include "AtomEnvelope.h"#include "AtomSourceVoiceEffect.h"#include "AtomVolumeFader.h"#include "AtomSoundBusSend.h"#include "AtomSoundSourceBusSend.h"#include "Modulation/AtomModulationDestination.h"#include "Interfaces/IAtomSoundAisacParameterController.h"#include "Atom/AtomQuartzQuantizationUtilities.h"#include "AtomComponent.generated.h"型定義 | |
| using | FTransactionallySafeCriticalSection = FCriticalSection |
列挙型 | |
| enum class | EAtomComponentPlayState : uint8 { Playing , Stopped , Paused , FadingIn , FadingOut , Count } |
関数 | |
| DECLARE_DYNAMIC_DELEGATE_OneParam (FOnAtomSoundCueBeatSyncInfo, FAtomBeatSyncInfo, BeatSyncInfo) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE (FOnAtomSoundFinished) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnAtomSoundCueBeatSync, FAtomBeatSyncInfo, BeatSyncInfo) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnAtomSoundCueBlockIndexChanged, int32, BlockIndex) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnAtomSoundCueSequencerEvent, FAtomSequencerEventInfo, EventInfo) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnAtomSoundPlayStateChanged, EAtomComponentPlayState, PlayState) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnAtomSoundVirtualizationChanged, bool, bIsVirtualized) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams (FOnAtomSoundMultiEnvelopeValue, const float, AverageEnvelopeValue, const float, MaxEnvelope, const int32, NumPlaybackInstances) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundPlaybackPercent, const class UAtomSoundBase *, PlayingSoundBase, const float, PlaybackPercent) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundSingleEnvelopeValue, const class UAtomSoundBase *, PlayingSound, const float, EnvelopeValue) | |
| DECLARE_MULTICAST_DELEGATE_FourParams (FOnAtomSoundMultiEnvelopeValueNative, const UAtomComponent *, const float, const float, const int32) | |
| DECLARE_MULTICAST_DELEGATE_OneParam (FOnAtomSoundFinishedNative, class UAtomComponent *) | |
| DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnAtomSoundPlaybackPercentNative, const class UAtomComponent *, const class UAtomSoundBase *, const float) | |
| DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnAtomSoundSingleEnvelopeValueNative, const UAtomComponent *, const UAtomSoundBase *, const float) | |
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundCueBeatSyncNative, const UAtomComponent *, FAtomBeatSyncInfo) | |
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundCueBlockIndexChangedNative, const UAtomComponent *, int32) | |
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundCueSequencerEventNative, const UAtomComponent *, FAtomSequencerEventInfo) | |
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundPlayStateChangedNative, const UAtomComponent *, EAtomComponentPlayState) | |
| DECLARE_MULTICAST_DELEGATE_TwoParams (FOnAtomSoundVirtualizationChangedNative, const UAtomComponent *, bool) | |
| using FTransactionallySafeCriticalSection = FCriticalSection |
|
strong |
| DECLARE_DYNAMIC_DELEGATE_OneParam | ( | FOnAtomSoundCueBeatSyncInfo | , |
| FAtomBeatSyncInfo | , | ||
| BeatSyncInfo | ) |
Native delegate that is invoked when PCM data need to be filtered out. Called by Atom when request cue sequence's BeatSync information from blueprint.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE | ( | FOnAtomSoundFinished | ) |
called when we finish playing audio, either because it played to completion or because a Stop() call turned it off early
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundCueBeatSync | , |
| FAtomBeatSyncInfo | , | ||
| BeatSyncInfo | ) |
Called when a beat occurs from cue sequence's BeatSync.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundCueBlockIndexChanged | , |
| int32 | , | ||
| BlockIndex | ) |
Called when sound cue block index is reached.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundCueSequencerEvent | , |
| FAtomSequencerEventInfo | , | ||
| EventInfo | ) |
Called when an event or a marker with a callback is reached in by cue sequencer.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundPlayStateChanged | , |
| EAtomComponentPlayState | , | ||
| PlayState | ) |
Called when sound's PlayState changes.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundVirtualizationChanged | , |
| bool | , | ||
| bIsVirtualized | ) |
Called when sound becomes virtualized or realized (resumes playback from virtualization).
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams | ( | FOnAtomSoundMultiEnvelopeValue | , |
| const float | , | ||
| AverageEnvelopeValue | , | ||
| const float | , | ||
| MaxEnvelope | , | ||
| const int32 | , | ||
| NumPlaybackInstances | ) |
Called while a sound plays and returns the sound's average and max envelope value (using an envelope follower in the audio renderer per wave instance). This only works in the audio mixer.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundPlaybackPercent | , |
| const class UAtomSoundBase * | , | ||
| PlayingSoundBase | , | ||
| const float | , | ||
| PlaybackPercent | ) |
Called as a sound plays on the Atom component to allow BP to perform actions based on playback percentage. Computed as samples played divided by total samples, taking into account pitch.
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundSingleEnvelopeValue | , |
| const class UAtomSoundBase * | , | ||
| PlayingSound | , | ||
| const float | , | ||
| EnvelopeValue | ) |
Called while a sound plays and returns the sound's envelope value (using an envelope follower in the audio renderer). This only works in the audio mixer.
| DECLARE_MULTICAST_DELEGATE_FourParams | ( | FOnAtomSoundMultiEnvelopeValueNative | , |
| const UAtomComponent * | , | ||
| const float | , | ||
| const float | , | ||
| const int32 | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_OneParam | ( | FOnAtomSoundFinishedNative | , |
| class UAtomComponent * | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_ThreeParams | ( | FOnAtomSoundPlaybackPercentNative | , |
| const class UAtomComponent * | , | ||
| const class UAtomSoundBase * | , | ||
| const float | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_ThreeParams | ( | FOnAtomSoundSingleEnvelopeValueNative | , |
| const UAtomComponent * | , | ||
| const UAtomSoundBase * | , | ||
| const float | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundCueBeatSyncNative | , |
| const UAtomComponent * | , | ||
| FAtomBeatSyncInfo | ) |
shadow delegate declaration for above.
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundCueBlockIndexChangedNative | , |
| const UAtomComponent * | , | ||
| int32 | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundCueSequencerEventNative | , |
| const UAtomComponent * | , | ||
| FAtomSequencerEventInfo | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundPlayStateChangedNative | , |
| const UAtomComponent * | , | ||
| EAtomComponentPlayState | ) |
shadow delegate declaration for above
| DECLARE_MULTICAST_DELEGATE_TwoParams | ( | FOnAtomSoundVirtualizationChangedNative | , |
| const UAtomComponent * | , | ||
| bool | ) |
shadow delegate declaration for above