engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IAudioSpatialization类 参考

IAudioSpatialization 更多...

#include <IAudioExtensionPlugin.h>

Public 成员函数

virtual bool CreateSpatializationEffect (uint32 SourceId)
 Creates an audio spatialization effect.
 
virtual void * GetSpatializationEffect (uint32 SourceId)
 Returns the spatialization effect for the given voice id.
 
virtual void GetSpatializationParameters (uint32 SourceId, FSpatializationParams &OutParams)
 DEPRECATED: Gets the spatialization effect parameters.
 
virtual void Initialize (const FAudioPluginInitializationParams InitializationParams)
 Initializes the spatialization plugin with the given buffer length.
 
virtual void InitializeSpatializationEffect (uint32 BufferLength)
 DEPRECATED: Initializes the spatialization effect with the given buffer length.
 
virtual bool IsSpatializationEffectInitialized () const
 Returns whether or not the spatialization effect has been initialized
 
virtual void OnAllSourcesProcessed ()
 Called when all sources have finished processing.
 
virtual void OnInitSource (const uint32 SourceId, const FName &AudioComponentUserId, USpatializationPluginSourceSettingsBase *InSettings)
 Called when a source is assigned to a voice.
 
virtual void OnReleaseSource (const uint32 SourceId)
 Called when a source is done playing and is released.
 
virtual void ProcessAudio (const FAudioPluginSourceInputData &InputData, FAudioPluginSourceOutputData &OutputData)
 Processes audio with the given input and output data structs.
 
virtual void ProcessSpatializationForVoice (uint32 SourceId, float *InSamples, float *OutSamples)
 DEPRECATED: Uses the given HRTF algorithm to spatialize a mono audio stream, assumes the parameters have already been set before processing.
 
virtual void ProcessSpatializationForVoice (uint32 SourceId, float *InSamples, float *OutSamples, const FVector &Position)
 DEPRECATED: Uses the given HRTF algorithm to spatialize a mono audio stream.
 
virtual void SetSpatializationParameters (uint32 SourceId, const FSpatializationParams &Params)
 DEPRECATED: sets the spatialization effect parameters.
 
virtual void Shutdown ()
 Shuts down the audio plugin.
 
virtual ~IAudioSpatialization ()
 Virtual destructor
 

详细描述

IAudioSpatialization

This class represents instances of a plugin that will process spatialization for a stream of audio. Currently used to process a mono-stream through an HRTF spatialization algorithm into a stereo stream. This algorithm contains an audio effect assigned to every VoiceId (playing sound instance). It assumes the effect is updated in the audio engine update loop with new position information.


该类的文档由以下文件生成: