|
CriWare Unreal Engine
Plug-ins for CriWare solutions.
|
#include <AtomWavePlayer.h>
公開メンバ関数 | |
| UAtomWavePlayer (const FObjectInitializer &ObjectInitializer) | |
| virtual | ~UAtomWavePlayer () |
| void | AdjustVolume (float AdjustVolumeDuration, float AdjustVolumeLevel) |
| virtual void | BeginDestroy () override |
| UAtomRackBase * | GetAtomRack () const |
| FString | GetDesc () |
| virtual FString | GetDetailedInfoInternal () const override |
| EAtomWavePlayState | GetPlayState () const |
| UAtomSoundBase * | GetSound () const |
| UAtomSoundBank * | GetSoundBank () const |
| TStatId | GetStatId () const override |
| FTimespan | GetTime () const |
| FAtomWaveInfo | GetWaveInfo () const |
| UWorld * | GetWorld () const override |
| void | HandleNativePlayerOnDecode (CriAtomPcmFormat format, CriSint32 num_channels, CriSint32 num_samples, void *data[]) |
| void | HandleNativePlayerOnStatusChanged (CriAtomPlayerStatus Status) |
| bool | HasError () const |
| bool | IsLooping () const |
| bool | IsPaused () const |
| bool | IsPlaying () const |
| bool | IsTickable () const override |
| bool | IsTickableInEditor () const override |
| bool | IsTickableWhenPaused () const override |
| void | Play (float StartTime=0.0f) |
| virtual void | PostLoad () override |
| FORCEINLINE void | RegisterFilterDataFunction (FAtomPcmFilterFunction Function) |
| virtual void | Serialize (FArchive &Ar) override |
| void | SetCue (UAtomSoundCue *InSoundCue) |
| bool | SetLooping (bool Looping) |
| void | SetPaused (bool bPause=true) |
| void | SetWave (UAtomSoundWave *InSoundWave) |
| void | Stop () |
| void | StopDelayed (float DelayTime) |
| void | Tick (float DeltaTime) override |
公開変数類 | |
| TObjectPtr< UAtomRackBase > | AtomRack |
| uint8 | bIsFadingOut: 1 |
| uint8 | bIsPaused: 1 |
| uint8 | bIsPreviewSound: 1 |
| uint8 | bIsUISound: 1 |
| uint8 | bUsePCMFilter: 1 |
| float | FadeInTimeDuration |
| FOnWaveFinished | OnWaveFinished |
| FOnWaveFinishedNative | OnWaveFinishedNative |
| FOnWavePlaybackPercent | OnWavePlaybackPercent |
| FOnWavePlaybackPercentNative | OnWavePlaybackPercentNative |
| TObjectPtr< UAtomSoundBase > | Sound |
| float | TimeAtomWavePlayed |
| FAtomWaveInfo | WaveInfo |
限定公開メンバ関数 | |
| void | PlayInternal (const float StartTime=0.0f, const float FadeInDuration=0.0f, const float FadeVolumeLevel=1.0f) |
限定公開変数類 | |
| uint8 | bIsRequestPlaying: 1 |
| uint8 | bIsSoundLoading: 1 |
| uint32 | bLoop: 1 |
| CriAtomPlayerHn | NativePlayer |
| float | PlayFadeInDuration |
| float | PlayFadeVolumeLevel |
| float | PlayStartTime |
非公開メンバ関数 | |
| void | CacheWaveInfo () |
| void | PlaybackCompleted (bool bFailedToStart) |
非公開変数類 | |
| FOnAtomWavePlayerStateChanged | AtomWavePlayerStateChanged |
| FAtomPcmFilterFunction | FilterDataFunction |
Native delegate that is invoked when PCM data need to be filtered out. Implements an Atom wave player asset that can play Atom waves.
| UAtomWavePlayer::UAtomWavePlayer | ( | const FObjectInitializer & | ObjectInitializer | ) |
|
virtual |
| void UAtomWavePlayer::AdjustVolume | ( | float | AdjustVolumeDuration, |
| float | AdjustVolumeLevel ) |
This will allow one to adjust the volume on the fly
|
overridevirtual |
|
private |
Called to get WaveformInfo from Atom native player.
|
inline |
An array of rack sends. Audio from this sound will send a portion of its audio to these racks. Returns the SoundSubmix used for this sound.
|
inline |
|
overridevirtual |
| EAtomWavePlayState UAtomWavePlayer::GetPlayState | ( | ) | const |
Returns the enumerated play states of the audio component.
|
inline |
| UAtomSoundBank * UAtomWavePlayer::GetSoundBank | ( | ) | const |
|
inlineoverride |
|
inline |
Get the movie's current playback rate.
| Rate | The playback rate to set. |
|
inline |
|
inlineoverride |
| void UAtomWavePlayer::HandleNativePlayerOnDecode | ( | CriAtomPcmFormat | format, |
| CriSint32 | num_channels, | ||
| CriSint32 | num_samples, | ||
| void * | data[] ) |
| void UAtomWavePlayer::HandleNativePlayerOnStatusChanged | ( | CriAtomPlayerStatus | Status | ) |
Returns the sound submix sends for this sound. Get an event delegate that is invoked when a Mana event occurred.
This delegate if fired only once then removed automatically.
| bool UAtomWavePlayer::HasError | ( | ) | const |
Check whether the player is in an error state.
When the player is in an error state, no further operations are possible. The current wave must be stopped, and a new wave source must be set before the player can be used again. Errors are usually caused by faulty sound files or interrupted network connections.
|
inline |
Check whether playback is looping.
|
inline |
|
inline |
|
override |
|
inlineoverride |
|
inlineoverride |
| void UAtomWavePlayer::Play | ( | float | StartTime = 0.0f | ) |
Start a sound playing on an audio component
|
private |
Called to inform that playback is finished.
|
protected |
Utility function called by Play and FadeIn to start a sound playing.
|
overridevirtual |
|
inline |
|
overridevirtual |
| void UAtomWavePlayer::SetCue | ( | UAtomSoundCue * | InSoundCue | ) |
Play the 1st wave of a cue
|
inline |
| void UAtomWavePlayer::SetPaused | ( | bool | bPause = true | ) |
Pause sound playing, issue any delegates if needed
| void UAtomWavePlayer::SetWave | ( | UAtomSoundWave * | InSoundWave | ) |
| void UAtomWavePlayer::Stop | ( | ) |
Stop sound, issue any delegates if needed
| void UAtomWavePlayer::StopDelayed | ( | float | DelayTime | ) |
Cues request to stop sound after the provided delay, stopping immediately if delay is zero or negative
|
override |
| TObjectPtr<UAtomRackBase> UAtomWavePlayer::AtomRack |
Rack to route sound output to. If unset, falls back to the 'Master Submix' as set in the 'Atom' category of CriWare Plugin in Project Settings'.
|
private |
An event delegate that is invoked when a new state occurred.
| uint8 UAtomWavePlayer::bIsFadingOut |
Whether or not fade out was triggered.
| uint8 UAtomWavePlayer::bIsPaused |
Whether or not this wave player has been paused
| uint8 UAtomWavePlayer::bIsPreviewSound |
Whether or not this sound is a preview sound
|
protected |
|
protected |
| uint8 UAtomWavePlayer::bIsUISound |
Whether or not this sound plays when the game is paused in the UI
|
protected |
Whether the player should loop when media playback reaches the end.
Use the SetLooping function to change this value at runtime.
| uint8 UAtomWavePlayer::bUsePCMFilter |
Whether or not the sound is out to PCM filter.
| float UAtomWavePlayer::FadeInTimeDuration |
How much time the player was told to fade in.
|
private |
|
protected |
Process the given Mana event.
| Event | The event to process. The CriAtom native player handle. |
| FOnWaveFinished UAtomWavePlayer::OnWaveFinished |
called when we finish playing audio, either because it played to completion or because a Stop() call turned it off early
| FOnWaveFinishedNative UAtomWavePlayer::OnWaveFinishedNative |
shadow delegate for non UObject subscribers
| FOnWavePlaybackPercent UAtomWavePlayer::OnWavePlaybackPercent |
Called as a sound plays on the player to allow BP to perform actions based on playback percentage. Computed as samples played divided by total samples, taking into account pitch.
| FOnWavePlaybackPercentNative UAtomWavePlayer::OnWavePlaybackPercentNative |
shadow delegate for non UObject subscribers
|
protected |
|
protected |
|
protected |
| TObjectPtr<UAtomSoundBase> UAtomWavePlayer::Sound |
Filter data to PCM A delegate that is invoked when playback has reached the end of the media. A delegate that is invoked when a media source has been closed. A delegate that is invoked when a Mana movie source has been opened.
Depending on whether the underlying player implementation opens the media synchronously or asynchronously, this event may be executed before or after the call to OpenSource / OpenUrl returns.
This delegate is only executed if OpenSource / OpenUrl returned true and the media failed to open asynchronously later. It is not executed if OpenSource / OpenUrl returned false, indicating an immediate failure.
| float UAtomWavePlayer::TimeAtomWavePlayed |
What time the player was told to play. Used to compute state.
| FAtomWaveInfo UAtomWavePlayer::WaveInfo |