Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FSoundWavePCMWriter
Description
This kicks off an operation to write InSampleBuffer to a USoundWave asset at the specified file path relative to the project directory. This function should only be used in the editor. If a USoundWave asset already exists InSoundWaveTransformationTarget is used to overwrite SoundWave data with its own transformations. (ex. marker data)
| Name | BeginWriteToSoundWave |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Sound/SampleBufferIO.h |
| Include Path | #include "Sound/SampleBufferIO.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SampleBufferIO.cpp |
bool BeginWriteToSoundWave
(
const FString & FileName,
const TSampleBuffer <> & InSampleBuffer,
FString InPath,
TFunction < void *)> OnSuccess,
TObjectPtr < USoundWave > InSoundWaveTransformationTarget
)