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

An IVoice interface 更多...

#include <UnrealAudioVoice.h>

Public 成员函数

virtual EVoiceError::Type AddVoiceListener (IVoiceListener *Listener)=0
 Adds the given notifier to the voice. 更多...
 
virtual EVoiceError::Type GetBaselinePitchScale (float &OutBaselinePitchScale) const =0
 Gets the baseline pitch scale of this voice. 更多...
 
virtual EVoiceError::Type GetBaselineVolumeScale (float &OutBaselineVolumeScale) const =0
 Gets baseline volume scale. 更多...
 
virtual EVoiceError::Type GetDuration (float &OutDurationSec)=0
 Gets a duration. 更多...
 
virtual EVoiceError::Type GetPitchProduct (float &OutPitchProduct) const =0
 Gets the pitch product. 更多...
 
virtual EVoiceError::Type GetPitchScale (float &OutPitchScale) const =0
 Gets dynamic pitch scale of this voice. 更多...
 
virtual EVoiceError::Type GetVolumeAttenuation (float &OutAttenuation) const =0
 Gets volume attenuation (due to 3d spatialization). 更多...
 
virtual EVoiceError::Type GetVolumeProduct (float &OutVolumeProduct) const =0
 Gets the volume product. 更多...
 
virtual EVoiceError::Type GetVolumeScale (float &OutVolumeScale) const =0
 Gets volume scale. 更多...
 
virtual EVoiceError::Type IsValid (bool &bOutIsValid) const =0
 Is valid. 更多...
 
virtual EVoiceError::Type Pause (float InFadeTimeSec=0.0f)=0
 Pauses this voice. 更多...
 
virtual EVoiceError::Type Play ()=0
 Plays this voice. 更多...
 
virtual EVoiceError::Type RemoveVoiceListener (IVoiceListener *Listener)=0
 Removes the voice listener described by Listener. 更多...
 
virtual EVoiceError::Type SetPitchScale (float InPitchScale, float InFadeTimeSec=0.0f)=0
 Sets the pitch scale for this voice using linear volume scale. 更多...
 
virtual EVoiceError::Type SetVolumeScale (float InVolumeLinear, float InFadeTimeSec=0.0f)=0
 Sets the volume scale for this voice using linear volume scale. 更多...
 
virtual EVoiceError::Type Stop (float InFadeTimeSec=0.0f)=0
 Stops this voice. 更多...
 
virtual ~IVoice ()
 Destructor.
 

详细描述

An IVoice interface

成员函数说明

◆ AddVoiceListener()

virtual EVoiceError::Type UAudio::IVoice::AddVoiceListener ( IVoiceListener *  Listener)
pure virtual

Adds the given notifier to the voice.

The notifier will receive callbacks on various voice events.

◆ GetBaselinePitchScale()

virtual EVoiceError::Type UAudio::IVoice::GetBaselinePitchScale ( float &  OutBaselinePitchScale) const
pure virtual

Gets the baseline pitch scale of this voice.

参数
[out]OutBaselinePitchScaleThe out baseline pitch scale.
返回
An EVoiceError::Type.

◆ GetBaselineVolumeScale()

virtual EVoiceError::Type UAudio::IVoice::GetBaselineVolumeScale ( float &  OutBaselineVolumeScale) const
pure virtual

Gets baseline volume scale.

参数
[out]OutBaselineVolumeScaleThe baseline volume scale.
返回
An EVoiceError::Type.

◆ GetDuration()

virtual EVoiceError::Type UAudio::IVoice::GetDuration ( float &  OutDurationSec)
pure virtual

Gets a duration.

参数
[out]OutDurationSecThe out duration security.
返回
The duration.

◆ GetPitchProduct()

virtual EVoiceError::Type UAudio::IVoice::GetPitchProduct ( float &  OutPitchProduct) const
pure virtual

Gets the pitch product.

参数
[in,out]OutPitchProductThe out pitch product.
返回
An EVoiceError::Type.

◆ GetPitchScale()

virtual EVoiceError::Type UAudio::IVoice::GetPitchScale ( float &  OutPitchScale) const
pure virtual

Gets dynamic pitch scale of this voice.

参数
[out]OutPitchScaleThe pitch scale.
返回
An EVoiceError::Type.

◆ GetVolumeAttenuation()

virtual EVoiceError::Type UAudio::IVoice::GetVolumeAttenuation ( float &  OutAttenuation) const
pure virtual

Gets volume attenuation (due to 3d spatialization).

参数
[in,out]OutAttenuationThe out attenuation.
返回
The volume attenuation.

◆ GetVolumeProduct()

virtual EVoiceError::Type UAudio::IVoice::GetVolumeProduct ( float &  OutVolumeProduct) const
pure virtual

Gets the volume product.

参数
[out]OutVolumeProductThe volume product.
返回
An EVoiceError::Type.

◆ GetVolumeScale()

virtual EVoiceError::Type UAudio::IVoice::GetVolumeScale ( float &  OutVolumeScale) const
pure virtual

Gets volume scale.

参数
[in,out]OutVolumeScaleThe volume scale.
返回
An EVoiceError::Type.

◆ IsValid()

virtual EVoiceError::Type UAudio::IVoice::IsValid ( bool &  bOutIsValid) const
pure virtual

Is valid.

参数
[out]bOutIsValidThe out is valid.
返回
An EVoiceError::Type.

◆ Pause()

virtual EVoiceError::Type UAudio::IVoice::Pause ( float  InFadeTimeSec = 0.0f)
pure virtual

Pauses this voice.

参数
InFadeTimeSec(Optional) The amount of time to spend fading out this sound before pausing it.
返回
An EVoiceError::Type.

◆ Play()

virtual EVoiceError::Type UAudio::IVoice::Play ( )
pure virtual

Plays this voice.

返回
An EVoiceError::Type.

◆ RemoveVoiceListener()

virtual EVoiceError::Type UAudio::IVoice::RemoveVoiceListener ( IVoiceListener *  Listener)
pure virtual

Removes the voice listener described by Listener.

参数
[in]ListenerThe IVoiceListener to remove.
返回
An EVoiceError::Type.

◆ SetPitchScale()

virtual EVoiceError::Type UAudio::IVoice::SetPitchScale ( float  InPitchScale,
float  InFadeTimeSec = 0.0f 
)
pure virtual

Sets the pitch scale for this voice using linear volume scale.

参数
InPitchScalePitch scale to set for this voice.
InFadeTimeSecThe time to scale the pitch to the given pitch scale.
返回
An EVoiceError::Type.

◆ SetVolumeScale()

virtual EVoiceError::Type UAudio::IVoice::SetVolumeScale ( float  InVolumeLinear,
float  InFadeTimeSec = 0.0f 
)
pure virtual

Sets the volume scale for this voice using linear volume scale.

参数
InVolumeLinearLinear volume set this voice to.
InFadeTimeSecThe time to take to get to the given volume scale from its current volume scale.
返回
An EVoiceError::Type.

◆ Stop()

virtual EVoiceError::Type UAudio::IVoice::Stop ( float  InFadeTimeSec = 0.0f)
pure virtual

Stops this voice.

参数
InFadeTimeSecThe amount of time to spend fading out this sound.
注解
The voice is automatically released (i.e. freed) when the voice stops.
返回
An EVoiceError::Type.

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