PCM 数据处理
在声音播放时获取 PCM 数据
你可以使用 OnGeneratePCMData 委托在声音播放时获取 PCM 数据。这在处理或分析 PCM 音频数据时很有用。
- Blueprint
- C++
// Assuming ImportedSoundWave is a UE reference to a UImportedSoundWave object (or its derived type, such as UStreamingSoundWave, UCapturableSoundWave, etc.)
ImportedSoundWave->OnGeneratePCMDataNative.AddWeakLambda(this, [this](const TArray<float>& PCMData)
{
// Handle the result
});