Choose your operating system:
Windows
macOS
Linux
| USoundWave::GetGeneratedPCMDataFormat()
|
Module |
|
Header |
/Engine/Source/Runtime/AudioMixer/Public/Components/SynthComponent.h |
Include |
#include "Components/SynthComponent.h" |
Source |
/Engine/Source/Runtime/AudioMixer/Private/Components/SynthComponent.cpp |
virtual Audio::EAudioMixerStreamDataFormat::Type GetGeneratedPCMDataFormat() const
Return the format of the generated PCM data type. Used in audio mixer to allow generating float buffers and avoid unnecessary format conversions. This feature is only supported in audio mixer. If your procedural sound wave needs to be used in both audio mixer and old audio engine, it's best to generate int16 data as old audio engine only supports int16 formats. Or check at runtime if the audio mixer is enabled. Audio mixer will convert from int16 to float internally.