Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAudioDevice
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PlaySoundAtLocation
(
USoundBase* Sound, |
Plays a sound at the given location without creating an audio component. | AudioDevice.h | |
void PlaySoundAtLocation
(
USoundBase* Sound, |
As above, but supporting move semantics to reduce copying of Params | AudioDevice.h |
PlaySoundAtLocation(USoundBase , UWorld , float, float, float, const FVector &, const FRotator &, USoundAttenuation , USoundConcurrency , const TArray< FAudioParameter > , const AActor )
Description
Plays a sound at the given location without creating an audio component.
| Name | PlaySoundAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioDevice.h |
| Include Path | #include "AudioDevice.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AudioDevice.cpp |
void PlaySoundAtLocation
(
USoundBase * Sound,
UWorld * World,
float VolumeMultiplier,
float PitchMultiplier,
float StartTime,
const FVector & Location,
const FRotator & Rotation,
USoundAttenuation * AttenuationSettings,
USoundConcurrency * ConcurrencySettings,
const TArray < FAudioParameter > * Params,
const AActor * OwningActor
)
Parameters
| Name | Remarks |
|---|---|
| Sound | The USoundBase to play at the location. |
| World | The world this sound is playing in. |
| VolumeMultiplier | The volume multiplier to set on the sound. |
| PitchMultiplier | The pitch multiplier to set on the sound. |
| StartTime | The initial time offset for the sound. |
| Location | The sound's position. |
| Rotation | The sound's rotation. |
| AttenuationSettings | The sound's attenuation settings to use (optional). Will default to the USoundBase's AttenuationSettings if not specified. |
| USoundConcurrency | The sound's sound concurrency settings to use (optional). Will use the USoundBase's USoundConcurrency if not specified. |
| Params | An optional list of audio component params to immediately apply to a sound. |
PlaySoundAtLocation(USoundBase , UWorld , float, float, float, const FVector &, const FRotator &, USoundAttenuation , USoundConcurrency , TArray< FAudioParameter > &&, const AActor *)
Description
As above, but supporting move semantics to reduce copying of Params
| Name | PlaySoundAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AudioDevice.h |
| Include Path | #include "AudioDevice.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AudioDevice.cpp |
void PlaySoundAtLocation
(
USoundBase * Sound,
UWorld * World,
float VolumeMultiplier,
float PitchMultiplier,
float StartTime,
const FVector & Location,
const FRotator & Rotation,
USoundAttenuation * AttenuationSettings,
USoundConcurrency * Concurrency,
TArray < FAudioParameter > && Params,
const AActor * OwningActor
)