UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VectorLinearResampler.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "DSP/Dsp.h"
7
8namespace Audio
9{
93 {
95
96 // Returns the number of source frames necessary to generate the requested output
97 // count at the given fixed point sample rate (1.0 rate is 65536)
99 {
100 // the last run of the resampler will index [farthest_position >> 16] + 1, so we need
101 // that +1 to make it a count from an index.
103 return (FarthestPosition >> 16) + 2;
104 }
105
106 // Generate OutputFramesNeeded resampled output at the given fixed point sample rate (1.0 = 65536).
107 // Returns the number of source frames to consume. The next run of the resample expects to get
108 // SourceFrames + previous runs return value.
109 //
110 // stereo is deinterleaved, with the right channels being specified by Frames+StrideFloats.
111 //
114 };
115}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
NO_LOGGING.
Definition AudioMixerPlatformAndroid.cpp:53
Definition VectorLinearResampler.h:93
uint32 SourceFramesNeeded(uint32 OutputFramesNeeded, uint32 FixedPointSampleRate)
Definition VectorLinearResampler.h:98
uint32 CurrentFrameFraction
Definition VectorLinearResampler.h:94
SIGNALPROCESSING_API uint32 ResampleStereo(uint32 OutputFramesNeeded, uint32 FixedPointSampleRate, float const *SourceFrames, uint32 SourceFramesStrideFloats, float *OutputFrames, uint32 OutputFramesStrideFloats)
Definition VectorLinearResampler.cpp:125
SIGNALPROCESSING_API uint32 ResampleMono(uint32 OutputFramesNeeded, uint32 FixedPointSampleRate, float const *SourceFrames, float *OutputFrames)
Definition VectorLinearResampler.cpp:30