Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FAudioDevice
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/AudioDevice.h |
Include | #include "AudioDevice.h" |
Source | /Engine/Source/Runtime/Engine/Private/AudioDevice.cpp |
static UAudioComponent &42; CreateComponent
&40;
USoundBase &42; Sound,
const FCreateComponentParams & Params
&41;
Remarks
Creates an audio component to handle playing a sound. The created audio component if the function successfully created one or a nullptr if not successful. Note: if audio is disabled or if there were no hardware audio devices available, this will return nullptr.
Parameters
Name | Description |
---|---|
Sound | The USoundBase to play at the location. |
Params | The parameter block of properties to create the component based on |