FSoundWavePCMWriter::BeginWriteToWavFile

This writes out the InSampleBuffer as a wav file at the path specified by FilePath and FileName.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Sound/SampleBufferIO.h

Include

#include "Sound/SampleBufferIO.h"

Source

/Engine/Source/Runtime/Engine/Private/SampleBufferIO.cpp

Syntax

bool BeginWriteToWavFile
(
    const TSampleBuffer<> & InSampleBuffer,
    const FString & FileName,
    FString & FilePath,
    TFunction< void()> OnSuccess
)

Remarks

This writes out the InSampleBuffer as a wav file at the path specified by FilePath and FileName. If FilePath is a relative path, it will be relative to the /Saved/BouncedWavFiles folder, otherwise specified absolute path will be used. FileName should not contain the extension. This can be used in non-editor builds.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss