Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USoundWave
Description
Modifies the InOutCuePoints array with the frame values scaled by InSampleRate / ImportedSampleRate to account for resampling of the sound wave source data. Does not modify InOutCuePoints if no resampling is necessary
| Name | ScaleCuePointsForSampleRate |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Sound/SoundWave.h |
| Include Path | #include "Sound/SoundWave.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SoundWave.cpp |
void ScaleCuePointsForSampleRate
(
const float InSampleRate,
TArray < FSoundWaveCuePoint > & InOutCuePoints
) const
Parameters
| Name | Remarks |
|---|---|
| InSampleRate | The sample rate the SoundWave |
| InOutCuePoints | The CuePoints array to re-scale |