IVoice

An [IVoice](API\Runtime\UnrealAudio\IVoice) interface

Windows
MacOS
Linux

References

Module

UnrealAudio

Header

/Engine/Source/Runtime/UnrealAudio/Public/UnrealAudioVoice.h

Include

#include "UnrealAudioVoice.h"

Syntax

class IVoice

Remarks

An IVoice interface

Destructors

Name Description

Public function Virtual

~IVoice()

Destructor.

Functions

Name Description

Public function

EVoiceError:...

 

AddVoiceListener

(
    IVoiceListener* Listener
)

Adds the given notifier to the voice. The notifier will receive callbacks on various voice events.

Public function Const

EVoiceError:...

 

GetBaselinePitchScale

(
    float& OutBaselinePitchScale
)

Gets the baseline pitch scale of this voice.

Public function Const

EVoiceError:...

 

GetBaselineVolumeScale

(
    float& OutBaselineVolumeScale
)

Gets baseline volume scale.

Public function

EVoiceError:...

 

GetDuration

(
    float& OutDurationSec
)

Gets a duration.

Public function Const

EVoiceError:...

 

GetId

(
    uint32& OutVoiceId
)

Public function Const

EVoiceError:...

 

GetPitchProduct

(
    float& OutPitchProduct
)

Gets the pitch product.

Public function Const

EVoiceError:...

 

GetPitchScale

(
    float& OutPitchScale
)

Gets dynamic pitch scale of this voice.

Public function Const

EVoiceError:...

 

GetPlayingState

(
    EVoicePlayingState::Type& OutPlayi...
)

Public function Const

EVoiceError:...

 

GetVoiceState

(
    EVoiceState::Type& OutVoicestate
)

Public function Const

EVoiceError:...

 

GetVolumeAttenuation

(
    float& OutAttenuation
)

Gets volume attenuation (due to 3d spatialization).

Public function Const

EVoiceError:...

 

GetVolumeProduct

(
    float& OutVolumeProduct
)

Gets the volume product.

Public function Const

EVoiceError:...

 

GetVolumeScale

(
    float& OutVolumeScale
)

Gets volume scale.

Public function Const

EVoiceError:...

 

IsPlaying

(
    bool& OutIsplaying
)

Public function Const

EVoiceError:...

 

IsValid

(
    bool& bOutIsValid
)

Is valid.

Public function

EVoiceError:...

 

Pause

(
    float InFadeTimeSec
)

Pauses this voice.

Public function

EVoiceError:...

 

Play()

Plays this voice.

Public function

EVoiceError:...

 

RemoveVoiceListener

(
    IVoiceListener* Listener
)

Removes the voice listener described by Listener.

Public function

EVoiceError:...

 

SetPitchScale

(
    float InPitchScale,
    float InFadeTimeSec
)

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

Public function

EVoiceError:...

 

SetVolumeScale

(
    float InVolumeLinear,
    float InFadeTimeSec
)

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

Public function

EVoiceError:...

 

Stop

(
    float InFadeTimeSec
)

Stops this voice.

@note The voice is automatically released (i.e. freed) when the voice stops.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss