Navigation
Unreal Engine C++ API Reference > Runtime > MediaAssets
Inheritance Hierarchy
- ISoundGenerator
- FMediaSoundGenerator
References
Module | MediaAssets |
Header | /Engine/Source/Runtime/MediaAssets/Public/MediaSoundComponent.h |
Include | #include "MediaSoundComponent.h" |
Syntax
class FMediaSoundGenerator : public ISoundGenerator
Remarks
Class implements an ISoundGenerator to feed decoded audio to audio renderering async tasks.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMediaSoundGenerator
(
FSoundGeneratorParams& InParams |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | ||
![]() ![]() |
FTimespan | ||
![]() ![]() |
TArray< FMediaSoundComponentSpectralData > | ||
![]() ![]() |
TArray< FMediaSoundComponentSpectralData > | ||
![]() |
void | SetCachedData
(
float InCachedRate, |
|
![]() |
void | SetEnableEnvelopeFollowing
(
bool bInEnvelopeFollowingEnabled |
|
![]() |
void | SetEnableSpectralAnalysis
(
bool bInSpectralAnlaysisEnabled |
|
![]() |
void | SetEnvelopeFollowingSettings
(
int32 InAttackTimeMsec, |
|
![]() |
void | SetLastPlaySampleTime
(
const FTimespan& InLastPlaySampleTime |
|
![]() |
void | SetSampleQueue
(
TSharedPtr< FMediaAudioSampleQueue, ESPMode::ThreadSafe >& InSampleQueue |
|
![]() |
void | SetSpectrumAnalyzerSettings
(
Audio::FSpectrumAnalyzerSettings::EFFTSize InFFTSize, |
Overridden from ISoundGenerator
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Optional. Called on audio generator thread right when the generator ends generating. | |
![]() ![]() |
int32 | OnGenerateAudio
(
float* OutAudio, |
Called when a new buffer is required. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FSoundGeneratorParams |