Plugin interface for Non Real-Time (NRT) Audio Analyzers. 更多...
命名空间 | |
| namespace | EAudioOutputStreamState |
| EAudioOutputStreamState Specifies the state of the output audio stream. | |
类 | |
| class | FAdaptiveFilter |
| This filter takes a precomputed set of FIR weights in the frequency domain, and linearly converges to it. 更多... | |
| class | FAnalyzerNRTBatch |
| FAnalyzerNRTBatch 更多... | |
| struct | FAnalyzerNRTParameters |
| FAnalyzerNRTParameters 更多... | |
| class | FAudioCaptureSynth |
| Class which contains an FAudioCapture object and performs analysis on the audio stream, only outputing audio if it matches a detection criteria. 更多... | |
| struct | FAudioMixerOpenStreamParams |
| Defines parameters needed for opening a new audio stream to device. 更多... | |
| struct | FAudioPlatformDeviceInfo |
| Structure to hold platform device information 更多... | |
| struct | FAudioRenderTimeAnalysis |
| Struct used to store render time analysis data. 更多... | |
| struct | FAudioThreadTimingData |
| Data used to schedule events automatically in the audio renderer in audio mixer. 更多... | |
| class | FBaseChannelFormatConverter |
| FBaseChannelFormatConverter implements channel conversion using a simple mixing matrix. 更多... | |
| class | FBlockCorrelator |
| Correlation calculator which utilizes FFT to perform fast correlation calculations. 更多... | |
| struct | FBlockCorrelatorSettings |
| Settings for block correlator 更多... | |
| class | FBufferLinearEase |
| Class which handles a vectorized interpolation of an entire buffer to the values of a target buffer 更多... | |
| class | FContiguousSparse2DKernelTransform |
| FContiguousSparse2DKernelTransform 更多... | |
| class | FConvolutionFactory |
| FConvolutionFactory 更多... | |
| struct | FConvolutionSettings |
| FConvolutionSettings 更多... | |
| class | FFDAPFilterComputer |
| This class takes an incoming signal and an outgoing signal, Correlates them, and returns the frequency values of the weight targets to pass to an adaptive filter. 更多... | |
| class | FFFTFactory |
| FFFTFactory 更多... | |
| struct | FFFTSettings |
| FFFTSettings 更多... | |
| struct | FMelSpectrumKernelSettings |
| Settings for a mel kernel which transforms an linearly space spectrum (e.g. 更多... | |
| class | FMixerNullCallback |
| FMixerNullCallback This class, when started, spawns a new high priority thread that exists to query an FAudioMixerPlatformInterface and immediately throw out whatever buffers it receives. 更多... | |
| struct | FModulatorHandle |
| Handle to a modulator which interacts with the modulation API to manage lifetime of internal objects 更多... | |
| class | FMovingAverager |
| This class buffers audio while maintaining a running average of the underlying buffer. 更多... | |
| class | FMovingVectorAverager |
| Vectorized version of FMovingAverager. 更多... | |
| class | FOutputBuffer |
| Class which wraps an output float buffer and handles conversion to device stream formats. 更多... | |
| class | FPatchInput |
| Handle to a patch. 更多... | |
| class | FPatchMixer |
| This class is used for retrieving and mixing down audio from multiple threads. 更多... | |
| class | FPatchMixerSplitter |
| This class is used to mix multiple inputs from disparate threads to a single mixdown and deliver that mixdown to multiple outputs. 更多... | |
| struct | FPatchOutput |
| This class can be thought of as an output for a single constructed instance of FPatchInput. 更多... | |
| class | FPatchSplitter |
| This class is used to post audio from one source to multiple threads. 更多... | |
| class | FPinkNoise |
| Pink noise generator 1/Frequency noise spectrum 更多... | |
| struct | FPseudoConstantQBandSettings |
| Settings for a single constant q band. 更多... | |
| struct | FPseudoConstantQKernelSettings |
| Settings for Pseudo Constant Q Kernel generation. 更多... | |
| class | FSilenceDetection |
| This object will return buffered audio while the input signal is louder than the specified threshold, and buffer audio when the input signal otherwise. 更多... | |
| class | FSineOsc |
| FOsc Direct-form sinusoid oscillator. 更多... | |
| class | FSlowAdaptiveGainControl |
| This object accepts an input buffer and current amplitude estimate of that input buffer, Then applies a computed gain target. 更多... | |
| class | FSpectrumAnalyzer |
| Class built to be a rolling spectrum analyzer for arbitrary, monaural audio data. 更多... | |
| class | FSpectrumAnalyzerBuffer |
| This class locks an input buffer (for writing) and an output buffer (for reading). 更多... | |
| struct | FSpectrumBandExtractorSettings |
| Settings for band extractor. 更多... | |
| struct | FSpectrumBandExtractorSpectrumSettings |
| Settings describing the spectrum used for in the band extractor. 更多... | |
| class | FVolumeFader |
| Control-rate fader for managing volume fades of various standard shapes. 更多... | |
| class | FWhiteNoise |
| White noise generator Flat spectrum 更多... | |
| class | FWindow |
| Class used to generate, contain and apply a DSP window of a given type. 更多... | |
| class | IAnalyzerNRTFactory |
| IAnalyzerNRTFactory 更多... | |
| class | IAnalyzerNRTResult |
| IAnalyzerNRTResult 更多... | |
| class | IAnalyzerNRTSettings |
| IAnalyzerNRTSettings 更多... | |
| class | IAnalyzerNRTWorker |
| IAnalyzerNRTWorker 更多... | |
| class | IAudioEncoder |
| IAudioEncoder Interface used to implement a runtime audio encoder. 更多... | |
| class | IAudioMixer |
| Platform independent audio mixer interface. 更多... | |
| class | IAudioMixerDeviceChangedLister |
| Abstract interface for receiving audio device changed notifications 更多... | |
| class | IAudioMixerPlatformInterface |
| Abstract interface for mixer platform. 更多... | |
| class | IChannelFormatConverter |
| Inteface for Channel Format Converters which process deinterleaved audio. 更多... | |
| class | IConvolutionAlgorithm |
| IConvolutionAlgorithm 更多... | |
| class | IConvolutionAlgorithmFactory |
| IConvolutionAlgorithmFactory 更多... | |
| class | IFFTAlgorithm |
| IFFTAlgorithm 更多... | |
| class | IFFTAlgorithmFactory |
| IFFTAlgorithmFactory 更多... | |
| class | ISpectrumBandExtractor |
| Interface for spectrum band extractors. 更多... | |
| class | IViterbiInitialProbability |
| Interface class for viterbi initial log probabilities. 更多... | |
| class | IViterbiObservations |
| Interface class for viterbi observations. 更多... | |
| class | IViterbiTransitionProbability |
| Interface class for viterbi transition log probabilities. 更多... | |
| class | TAutoDeinterleaveView |
| TAutoDeinterleaveView 更多... | |
| class | TAutoSlidingWindow |
| TAutoSlidingWindow 更多... | |
| class | TCircularAudioBuffer |
| Basic implementation of a circular buffer built for pushing and popping arbitrary amounts of data at once. 更多... | |
| class | TDeinterleaveView |
| TDeinterleaveView 更多... | |
| struct | TGetPower |
| This allows us to write a compile time exponent of a number. 更多... | |
| class | TSample |
| TSample<SampleType, Q> Variant type to simplify converting and performing operations on fixed precision and floating point samples. 更多... | |
| class | TSampleRef |
| TSampleRef<SampleType, Q> Ref version of TSample. 更多... | |
| class | TScopedSlidingWindow |
| TScopedSlidingWindow 更多... | |
| class | TSlidingBuffer |
| TSlidingBuffer 更多... | |
| class | TSlidingWindow |
| TSlidingWindow 更多... | |
类型定义 | |
| using | FAudioBufferAlignedAllocator = TAlignedHeapAllocator< AUDIO_BUFFER_ALIGNMENT > |
| Aligned allocator used for fast operations. | |
| using | FDeviceId = uint32 |
| Typed identifier for Audio Device Id | |
| typedef TSharedPtr< FPatchOutput, ESPMode::ThreadSafe > | FPatchOutputStrongPtr |
| Patch outputs are owned by the FPatchMixer, and are pinned by the FPatchInput. | |
枚举 | |
| enum class | EFaderCurve : uint8 |
| Type of fade to use when adjusting a fader's volume over time. | |
| enum class | EFFTScaling : uint8 { None , MultipliedByFFTSize , MultipliedBySqrtFFTSize , DividedByFFTSize , DividedBySqrtFFTSize } |
| EFFTScaling 更多... | |
| enum class | EMelNormalization : uint8 |
| Normalization methods for a mel transform. | |
| enum class | EPseudoConstantQNormalization : uint8 |
| Band normalization schemes | |
函数 | |
| SIGNALPROCESSING_API void | AddConstantToBufferInplace (FAlignedFloatBuffer &InBuffer, float Constant) |
| Adds a constant to a buffer (useful for DC offset removal) | |
| SIGNALPROCESSING_API void | Apply2ChannelGain (FAlignedFloatBuffer &StereoBuffer, const float *RESTRICT Gains) |
| CHANNEL-SPECIFIC OPERATIONS 更多... | |
| SIGNALPROCESSING_API void | Apply4ChannelGain (FAlignedFloatBuffer &InterleavedBuffer, const float *RESTRICT Gains) |
| Takes a 4 channel interleaved buffer and applies Gains to it. 更多... | |
| SIGNALPROCESSING_API void | Apply6ChannelGain (FAlignedFloatBuffer &InterleavedBuffer, const float *RESTRICT Gains) |
| Takes a 6 channel interleaved buffer and applies Gains to it. 更多... | |
| SIGNALPROCESSING_API void | Apply8ChannelGain (FAlignedFloatBuffer &InterleavedBuffer, const float *RESTRICT Gains) |
| Takes an 8 channel interleaved buffer and applies Gains to it. 更多... | |
| SIGNALPROCESSING_API void | ArrayAbsInPlace (TArrayView< float > InView) |
| Absolute value of array elements in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayAddInPlace (TArrayView< const float > InValues, TArrayView< float > InAccumulateValues) |
| Add arrays element-wise in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayClampInPlace (TArrayView< float > InView, float InMin, float InMax) |
| Clamp values in an array. 更多... | |
| SIGNALPROCESSING_API void | ArrayClampMaxInPlace (TArrayView< float > InView, float InMax) |
| Clamp maximum value of array in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayClampMinInPlace (TArrayView< float > InView, float InMin) |
| Clamp minimum value of array in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayComplexConjugate (TArrayView< const float > InValues, TArrayView< float > OutValues) |
| Perform complex conjugate of array. 更多... | |
| SIGNALPROCESSING_API void | ArrayComplexMultiplyInPlace (TArrayView< const float > InValues1, TArrayView< float > InValues2) |
| Multiplies two complex valued arrays element-wise. 更多... | |
| SIGNALPROCESSING_API void | ArrayComplexToPower (const AlignedFloatBuffer &InComplexSamples, AlignedFloatBuffer &OutPowerSamples) |
| Compute power of complex data. 更多... | |
| SIGNALPROCESSING_API void | ArrayComplexToPower (TArrayView< float > InComplexSamples, TArray< float > &OutPowerSamples) |
| Compute power of complex data. 更多... | |
| SIGNALPROCESSING_API void | ArrayCumulativeSum (TArrayView< const float > InView, TArray< float > &OutData) |
| Cumulative sum of array. 更多... | |
| SIGNALPROCESSING_API void | ArrayGetEuclideanNorm (TArrayView< const float > InView, float &OutEuclideanNorm) |
| Computes the EuclideanNorm of the InView. 更多... | |
| SIGNALPROCESSING_API void | ArrayLerpAddInPlace (TArrayView< const float > InValues, float InStartMultiplier, float InEndMultiplier, TArrayView< float > InAccumulateValues) |
| Linearly Interpolate Add arrays element-wise in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayMagnitudeToDecibelInPlace (TArrayView< float > InValues, float InMinimumDb) |
| Convert magnitude values to decibel values in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayMaxFilter (TArrayView< const float > InView, int32 WindowSize, int32 WindowOrigin, TArray< float > &OutData) |
| Max filter of array. 更多... | |
| SIGNALPROCESSING_API void | ArrayMean (TArrayView< const float > InView, float &OutMean) |
| Mean of array. 更多... | |
| SIGNALPROCESSING_API void | ArrayMeanFilter (TArrayView< const float > InView, int32 WindowSize, int32 WindowOrigin, TArray< float > &OutData) |
| Mean filter of array. 更多... | |
| SIGNALPROCESSING_API void | ArrayMinMaxNormalize (TArrayView< const float > InView, TArray< float > &OutArray) |
| Scale an array so the minimum is 0 and the maximum is 1 更多... | |
| SIGNALPROCESSING_API void | ArrayMultiplyAddInPlace (TArrayView< const float > InValues, float InMultiplier, TArrayView< float > InAccumulateValues) |
| Multiply Add arrays element-wise in place. 更多... | |
| SIGNALPROCESSING_API void | ArrayMultiplyByConstantInPlace (TArrayView< float > InValues, float InMultiplier) |
| Multiplies each element in InView by InMultiplier | |
| SIGNALPROCESSING_API void | ArrayMultiplyInPlace (TArrayView< const float > InValues1, TArrayView< float > InValues2) |
| Multiplies two arrays element-wise. 更多... | |
| SIGNALPROCESSING_API void | ArrayPowerToDecibelInPlace (TArrayView< float > InValues, float InMinimumDb) |
| Convert power values to decibel values in place. 更多... | |
| SIGNALPROCESSING_API void | ArraySqrtInPlace (TArrayView< float > InValues) |
| Take Square Root of values in place. | |
| SIGNALPROCESSING_API void | ArraySubtract (TArrayView< const float > InMinuend, TArrayView< const float > InSubtrahend, TArray< float > &OutArray) |
| Subract arrays element-wise. 更多... | |
| SIGNALPROCESSING_API void | ArraySubtractByConstantInPlace (TArrayView< float > InValues, float InSubtrahend) |
| Subtract value from each element in InValues | |
| SIGNALPROCESSING_API void | BufferComplexToMagnitudeFast (const FAlignedFloatBuffer &InRealSamples, const FAlignedFloatBuffer &InImaginarySamples, FAlignedFloatBuffer &OutPowerSamples) |
| Compute magnitude of complex data. 更多... | |
| SIGNALPROCESSING_API void | BufferComplexToMagnitudeFast (const float *RESTRICT InRealSamples, const float *RESTRICT InImaginarySamples, float *RESTRICT OutPowerSamples, const int32 InNum) |
| Compute magnitude of complex data. 更多... | |
| SIGNALPROCESSING_API void | BufferComplexToPowerFast (const FAlignedFloatBuffer &InRealSamples, const FAlignedFloatBuffer &InImaginarySamples, FAlignedFloatBuffer &OutPowerSamples) |
| Compute power of complex data. 更多... | |
| SIGNALPROCESSING_API void | BufferComplexToPowerFast (const float *RESTRICT InRealSamples, const float *RESTRICT InImaginarySamples, float *RESTRICT OutPowerSamples, const int32 InNum) |
| Compute power of complex data. 更多... | |
| SIGNALPROCESSING_API void | BufferDeinterleave2ChannelFast (const FAlignedFloatBuffer &InBuffer, FAlignedFloatBuffer &OutBuffer1, FAlignedFloatBuffer &OutBuffer2) |
| Deinterleaves samples from a 2 channel input buffer | |
| SIGNALPROCESSING_API void | BufferDeinterleave2ChannelFast (const float *RESTRICT InBuffer, float *RESTRICT OutBuffer1, float *RESTRICT OutBuffer2, const int32 InNum) |
| Deinterleaves samples from a 2 channel input buffer | |
| SIGNALPROCESSING_API void | BufferInterleave2ChannelFast (const FAlignedFloatBuffer &InBuffer1, const FAlignedFloatBuffer &InBuffer2, FAlignedFloatBuffer &OutBuffer) |
| Interleaves samples from two input buffers | |
| SIGNALPROCESSING_API void | BufferInterleave2ChannelFast (const float *RESTRICT InBuffer1, const float *RESTRICT InBuffer2, float *RESTRICT OutBuffer, const int32 InNum) |
| Interleaves samples from two input buffers | |
| SIGNALPROCESSING_API void | BufferMultiplyByConstant (const FAlignedFloatBuffer &InFloatBuffer, float InValue, FAlignedFloatBuffer &OutFloatBuffer) |
| Multiplies the input aligned float buffer with the given value. | |
| SIGNALPROCESSING_API void | BufferSetToConstantInplace (FAlignedFloatBuffer &InBuffer, float Constant) |
| Sets a constant to a buffer (useful for DC offset application) | |
| SIGNALPROCESSING_API void | BufferSum2ChannelToMonoFast (const FAlignedFloatBuffer &InSamples, FAlignedFloatBuffer &OutSamples) |
| Sums 2 channel interleaved input samples. 更多... | |
| SIGNALPROCESSING_API void | BufferSum2ChannelToMonoFast (const float *RESTRICT InSamples, float *RESTRICT OutSamples, const int32 InNumFrames) |
| Sums 2 channel interleaved input samples. 更多... | |
| SIGNALPROCESSING_API void | BufferUnderflowClampFast (FAlignedFloatBuffer &InOutBuffer) |
| CHANNEL-AGNOSTIC OPERATIONS | |
| SIGNALPROCESSING_API void | DownmixAndSumIntoBuffer (int32 NumSourceChannels, int32 NumDestinationChannels, const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &BufferToSumTo, const float *RESTRICT Gains) |
| This is similar to DownmixBuffer, except that it sums into DestinationBuffer rather than overwriting it. | |
| SIGNALPROCESSING_API void | DownmixBuffer (int32 NumSourceChannels, int32 NumDestinationChannels, const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| This is a generalized operation that uses the channel gain matrix provided in Gains to mix an interleaved source buffer to the interleaved downmix buffer. 更多... | |
| static void | Filter (TArray< float > &Signal, const FPassiveFilterParams &InParams) |
| Static function for applying a filter to any time series. | |
| static void | Filter (TArrayView< float > &Signal, const FPassiveFilterParams &InParams) |
| This can be called on any TArrayView<float> whose length is a power of 2. | |
| SIGNALPROCESSING_API float | GetAverageAmplitude (const FAlignedFloatBuffer &Buffer) |
| Takes an audio buffer and gets the average absolute amplitude across that buffer. | |
| SIGNALPROCESSING_API float | GetMagnitude (const FAlignedFloatBuffer &Buffer) |
| CHANNEL-AGNOSTIC ANALYSIS OPERATIONS 更多... | |
| SIGNALPROCESSING_API float | HzToMel (float InHz) |
| Convert a frequency in hz to a mel frequency. | |
| SIGNALPROCESSING_API float | MelToHz (float InMel) |
| Convert a mel frequency to a frequency in hz. | |
| SIGNALPROCESSING_API void | Mix2ChannelsTo2ChannelsFast (const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 2 channel buffer and mixes it to an 2 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | Mix2ChannelsTo4ChannelsFast (const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | Mix2ChannelsTo6ChannelsFast (const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | Mix2ChannelsTo8ChannelsFast (const FAlignedFloatBuffer &SourceBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | MixInBufferFast (const FAlignedFloatBuffer &InFloatBuffer, FAlignedFloatBuffer &BufferToSumTo, const float Gain) |
| Takes buffer InFloatBuffer, optionally multiplies it by Gain, and adds it to BufferToSumTo. | |
| SIGNALPROCESSING_API void | MixInBufferFast (const FAlignedFloatBuffer &InFloatBuffer, FAlignedFloatBuffer &BufferToSumTo, const float StartGain, const float EndGain) |
| This version of MixInBufferFast will fade from StartGain to EndGain. | |
| SIGNALPROCESSING_API void | MixMonoTo2ChannelsFast (const FAlignedFloatBuffer &MonoBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 1 channel buffer and mixes it to a stereo buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | MixMonoTo4ChannelsFast (const FAlignedFloatBuffer &MonoBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | MixMonoTo6ChannelsFast (const FAlignedFloatBuffer &MonoBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | MixMonoTo8ChannelsFast (const FAlignedFloatBuffer &MonoBuffer, FAlignedFloatBuffer &DestinationBuffer, const float *RESTRICT Gains) |
| Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains. 更多... | |
| SIGNALPROCESSING_API void | MultiplyBufferByConstantInPlace (FAlignedFloatBuffer &InBuffer, float InGain) |
| Similar to BufferMultiplyByConstant, but (a) assumes a buffer length divisible by 4 and (b) performs the multiply in place. | |
| SIGNALPROCESSING_API void | MultiplyBuffersInPlace (const FAlignedFloatBuffer &InFloatBuffer, FAlignedFloatBuffer &BufferToMultiply) |
| Multiply the second buffer in place by the first buffer. | |
| SIGNALPROCESSING_API TUniquePtr< FContiguousSparse2DKernelTransform > | NewPseudoConstantQKernelTransform (const FPseudoConstantQKernelSettings &InSettings, const int32 InFFTSize, const float InSampleRate) |
| NewPseudoConstantQKernelTransform 更多... | |
| SIGNALPROCESSING_API void | SumBuffers (const FAlignedFloatBuffer &InFloatBuffer1, const FAlignedFloatBuffer &InFloatBuffer2, FAlignedFloatBuffer &OutputBuffer) |
| Sums two buffers together and places the result in the resulting buffer. | |
Plugin interface for Non Real-Time (NRT) Audio Analyzers.
Sliding Window implementation which enables ranged for loop iteration over sequential input buffers of varying length.
Interfaces for Soundfield Encoding and Decoding
This set of interfaces can be implemented to add support for encoding to and decoding from a soundfield format. There are four classes that are required to implement a soundfield format:
ISoundfieldPacket: Container for a single audio callback's resulting data for the soundfield format. For example, for first order ambisonics, this would contain an interleaved buffer of floats. For a proprietary spatial audio format, this would contain a bitstream.
USoundfieldEncodingSettingsBase: These are game thread-local, inspectable settings to define how a soundfield is getting encoded. For example, this may contain the order of an ambisonics sound field.
ISoundfieldEncodingSettingsProxy: This should contain all data from USoundfieldEncodingSettingsBase that needs to be read by an encoder or transcoder stream to apply the settings from an implementation of USoundfieldEncodingSettingsBase.
ISoundfieldEncoderStream: Class that encodes interleaved audio from a set of arbitrary locations to an ISoundfieldPacket. ISoundfieldDecoderStream: Class that decodes audio from an ISoundfieldPacket to interleaved audio at a set of arbitrary locations. ISoundfieldTranscodeStream: Class that translates a soundfield stream from one type to another. ISoundfieldMixerStream: Class that sums together multiple incoming ISoundfieldPackets into one ISoundfieldPacket.
ISoundfieldFactory: Factory class that declares the name of your format and creates new encoder, decoders, transcoders and mixers as requested.
|
strong |
EFFTScaling
EFFTScaling describes how transformed data is scaled. IFFTAlgorithm implementations must return this value to describe how to achieve equal energy between input data and transformed data. It is assumed that applying the logical inverse of the scaling will produce equal energy.
| SIGNALPROCESSING_API void Audio::Apply2ChannelGain | ( | FAlignedFloatBuffer & | StereoBuffer, |
| const float *RESTRICT | Gains | ||
| ) |
CHANNEL-SPECIFIC OPERATIONS
Takes a 2 channel interleaved buffer and applies Gains to it. Gains is expected to point to a 2 float long buffer. StereoBuffer must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::Apply4ChannelGain | ( | FAlignedFloatBuffer & | InterleavedBuffer, |
| const float *RESTRICT | Gains | ||
| ) |
Takes a 4 channel interleaved buffer and applies Gains to it.
Gains is expected to point to a 2 float long buffer. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::Apply6ChannelGain | ( | FAlignedFloatBuffer & | InterleavedBuffer, |
| const float *RESTRICT | Gains | ||
| ) |
Takes a 6 channel interleaved buffer and applies Gains to it.
Gains is expected to point to a 2 float long buffer. InterleavedBuffer must have an even number of frames.
| SIGNALPROCESSING_API void Audio::Apply8ChannelGain | ( | FAlignedFloatBuffer & | InterleavedBuffer, |
| const float *RESTRICT | Gains | ||
| ) |
Takes an 8 channel interleaved buffer and applies Gains to it.
Gains is expected to point to an 8 float long buffer.
| SIGNALPROCESSING_API void Audio::ArrayAbsInPlace | ( | TArrayView< float > | InView | ) |
Absolute value of array elements in place.
InView contains the data to be manipulated.
| SIGNALPROCESSING_API void Audio::ArrayAddInPlace | ( | TArrayView< const float > | InValues, |
| TArrayView< float > | InAccumulateValues | ||
| ) |
Add arrays element-wise in place.
InAccumulateValues[i] += InValues[i]
InValues is the array to add. InAccumulateValues is the array which holds the sum.
| SIGNALPROCESSING_API void Audio::ArrayClampInPlace | ( | TArrayView< float > | InView, |
| float | InMin, | ||
| float | InMax | ||
| ) |
Clamp values in an array.
InView is a view of a float array to be clamped. InMin is the minimum value allowable in the array. InMax is the maximum value allowable in the array.
| SIGNALPROCESSING_API void Audio::ArrayClampMaxInPlace | ( | TArrayView< float > | InView, |
| float | InMax | ||
| ) |
Clamp maximum value of array in place.
InView contains data to be clamped. InMax contains the maximum value allowable in InView.
| SIGNALPROCESSING_API void Audio::ArrayClampMinInPlace | ( | TArrayView< float > | InView, |
| float | InMin | ||
| ) |
Clamp minimum value of array in place.
InView contains data to be clamped. InMin contains the minimum value allowable in InView.
| SIGNALPROCESSING_API void Audio::ArrayComplexConjugate | ( | TArrayView< const float > | InValues, |
| TArrayView< float > | OutValues | ||
| ) |
Perform complex conjugate of array.
Assumes complex numbers are interlaves [real_0, imag_0, real_1, image_1, ..., real_N, imag_N].
| SIGNALPROCESSING_API void Audio::ArrayComplexMultiplyInPlace | ( | TArrayView< const float > | InValues1, |
| TArrayView< float > | InValues2 | ||
| ) |
Multiplies two complex valued arrays element-wise.
This assumes elements are in interleaved format [real_0, imag_0, ..., real_N, imag_N] Stores result in InValues2
| SIGNALPROCESSING_API void Audio::ArrayComplexToPower | ( | const AlignedFloatBuffer & | InComplexSamples, |
| AlignedFloatBuffer & | OutPowerSamples | ||
| ) |
Compute power of complex data.
Out[i] = Complex[2 * i] * Complex[2 * i] + Complex[2 * i + 1] * Complex[2 * i + 1]
| SIGNALPROCESSING_API void Audio::ArrayComplexToPower | ( | TArrayView< float > | InComplexSamples, |
| TArray< float > & | OutPowerSamples | ||
| ) |
Compute power of complex data.
Out[i] = Complex[2 * i] * Complex[2 * i] + Complex[2 * i + 1] * Complex[2 * i + 1]
| SIGNALPROCESSING_API void Audio::ArrayCumulativeSum | ( | TArrayView< const float > | InView, |
| TArray< float > & | OutData | ||
| ) |
Cumulative sum of array.
InView contains data to be cumulatively summed. OutData contains sum and is same size as InView.
| SIGNALPROCESSING_API void Audio::ArrayGetEuclideanNorm | ( | TArrayView< const float > | InView, |
| float & | OutEuclideanNorm | ||
| ) |
Computes the EuclideanNorm of the InView.
Same as calculating the energy in window.
| SIGNALPROCESSING_API void Audio::ArrayLerpAddInPlace | ( | TArrayView< const float > | InValues, |
| float | InStartMultiplier, | ||
| float | InEndMultiplier, | ||
| TArrayView< float > | InAccumulateValues | ||
| ) |
Linearly Interpolate Add arrays element-wise in place.
InAccumulateValues[i] += ((1 - alpha) * InStartMultiplier + alpha * InEndMultipler) * InValues[i] Interpolation is performed over the length of the array.
| InValues | - The array to add. |
| InStartMultiplier | - The beginning value to multiply against InValues |
| InEndMultiplier | - The ending value to multiply against InValues |
| InAccumulateValues | - The array which holds the sum. |
| SIGNALPROCESSING_API void Audio::ArrayMagnitudeToDecibelInPlace | ( | TArrayView< float > | InValues, |
| float | InMinimumDb | ||
| ) |
Convert magnitude values to decibel values in place.
db = 20 * log10(val)
| SIGNALPROCESSING_API void Audio::ArrayMaxFilter | ( | TArrayView< const float > | InView, |
| int32 | WindowSize, | ||
| int32 | WindowOrigin, | ||
| TArray< float > & | OutData | ||
| ) |
Max filter of array.
Note: At array boundaries, this algorithm truncates windows where no valid array data exists.
InView contains data to be filtered. WindowSize determines the number of samples from InView analyzed to produce a value in OutData. WindowOrigin describes the offset from the windows first sample to the index of OutData. For example, if WindowOrigin = WindowSize/4, then OutData[i] = Max(InView[i - Window/4 : i + 3 * Window / 4]). OutData contains the produceds data.
| SIGNALPROCESSING_API void Audio::ArrayMean | ( | TArrayView< const float > | InView, |
| float & | OutMean | ||
| ) |
Mean of array.
Equivalent to Sum(InView) / InView.Num()
InView contains data to be analyzed. OutMean contains the result.
| SIGNALPROCESSING_API void Audio::ArrayMeanFilter | ( | TArrayView< const float > | InView, |
| int32 | WindowSize, | ||
| int32 | WindowOrigin, | ||
| TArray< float > & | OutData | ||
| ) |
Mean filter of array.
Note: Uses standard biased mean estimator of Sum(x) / Count(x). Note: At array boundaries, this algorithm truncates windows where no valid array data exists. Values calculated with truncated windows have corresponding increased variances.
InView contains data to be filtered. WindowSize determines the number of samples from InView analyzed to produce a value in OutData. WindowOrigin describes the offset from the windows first sample to the index of OutData. For example, if WindowOrigin = WindowSize/4, then OutData[i] = Mean(InView[i - Window/4 : i + 3 * Window / 4]). OutData contains the produceds data.
| SIGNALPROCESSING_API void Audio::ArrayMinMaxNormalize | ( | TArrayView< const float > | InView, |
| TArray< float > & | OutArray | ||
| ) |
Scale an array so the minimum is 0 and the maximum is 1
InView is the view of a float array with the input data. OutArray is an array which will hold the normalized data.
| SIGNALPROCESSING_API void Audio::ArrayMultiplyAddInPlace | ( | TArrayView< const float > | InValues, |
| float | InMultiplier, | ||
| TArrayView< float > | InAccumulateValues | ||
| ) |
Multiply Add arrays element-wise in place.
InAccumulateValues[i] += InMultiplier * InValues[i]
| InValues | - The array to add. |
| InMultiplier | - The value to multiply against InValues |
| InAccumulateValues | - The array which holds the sum. |
| SIGNALPROCESSING_API void Audio::ArrayMultiplyInPlace | ( | TArrayView< const float > | InValues1, |
| TArrayView< float > | InValues2 | ||
| ) |
Multiplies two arrays element-wise.
Stores result in InValues2
| SIGNALPROCESSING_API void Audio::ArrayPowerToDecibelInPlace | ( | TArrayView< float > | InValues, |
| float | InMinimumDb | ||
| ) |
Convert power values to decibel values in place.
db = 10 * log10(val)
| SIGNALPROCESSING_API void Audio::ArraySubtract | ( | TArrayView< const float > | InMinuend, |
| TArrayView< const float > | InSubtrahend, | ||
| TArray< float > & | OutArray | ||
| ) |
Subract arrays element-wise.
OutArray = InMinuend - InSubtrahend
InMinuend is the array of data to be subtracted from. InSubtrahend is the array of data to subtract. OutArray is the array which holds the result.
| SIGNALPROCESSING_API void Audio::BufferComplexToMagnitudeFast | ( | const FAlignedFloatBuffer & | InRealSamples, |
| const FAlignedFloatBuffer & | InImaginarySamples, | ||
| FAlignedFloatBuffer & | OutPowerSamples | ||
| ) |
Compute magnitude of complex data.
Out[i] = Sqrt(Real[i] * Real[i] + Imaginary[i] * Imaginary[i])
| SIGNALPROCESSING_API void Audio::BufferComplexToMagnitudeFast | ( | const float *RESTRICT | InRealSamples, |
| const float *RESTRICT | InImaginarySamples, | ||
| float *RESTRICT | OutPowerSamples, | ||
| const int32 | InNum | ||
| ) |
Compute magnitude of complex data.
Out[i] = Sqrt(Real[i] * Real[i] + Imaginary[i] * Imaginary[i])
| SIGNALPROCESSING_API void Audio::BufferComplexToPowerFast | ( | const FAlignedFloatBuffer & | InRealSamples, |
| const FAlignedFloatBuffer & | InImaginarySamples, | ||
| FAlignedFloatBuffer & | OutPowerSamples | ||
| ) |
Compute power of complex data.
Out[i] = Real[i] * Real[i] + Imaginary[i] * Imaginary[i]
| SIGNALPROCESSING_API void Audio::BufferComplexToPowerFast | ( | const float *RESTRICT | InRealSamples, |
| const float *RESTRICT | InImaginarySamples, | ||
| float *RESTRICT | OutPowerSamples, | ||
| const int32 | InNum | ||
| ) |
Compute power of complex data.
Out[i] = Real[i] * Real[i] + Imaginary[i] * Imaginary[i]
| SIGNALPROCESSING_API void Audio::BufferSum2ChannelToMonoFast | ( | const FAlignedFloatBuffer & | InSamples, |
| FAlignedFloatBuffer & | OutSamples | ||
| ) |
Sums 2 channel interleaved input samples.
OutSamples[n] = InSamples[2n] + InSamples[2n + 1]
| SIGNALPROCESSING_API void Audio::BufferSum2ChannelToMonoFast | ( | const float *RESTRICT | InSamples, |
| float *RESTRICT | OutSamples, | ||
| const int32 | InNumFrames | ||
| ) |
Sums 2 channel interleaved input samples.
OutSamples[n] = InSamples[2n] + InSamples[2n + 1]
| SIGNALPROCESSING_API void Audio::DownmixBuffer | ( | int32 | NumSourceChannels, |
| int32 | NumDestinationChannels, | ||
| const FAlignedFloatBuffer & | SourceBuffer, | ||
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
This is a generalized operation that uses the channel gain matrix provided in Gains to mix an interleaved source buffer to the interleaved downmix buffer.
This operation is not explicitly vectorized and will almost always be slower than using one of the functions above.
| SIGNALPROCESSING_API float Audio::GetMagnitude | ( | const FAlignedFloatBuffer & | Buffer | ) |
CHANNEL-AGNOSTIC ANALYSIS OPERATIONS
Takes an audio buffer and returns the magnitude across that buffer.
| SIGNALPROCESSING_API void Audio::Mix2ChannelsTo2ChannelsFast | ( | const FAlignedFloatBuffer & | SourceBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 2 channel buffer and mixes it to an 2 channel interleaved buffer using Gains.
Gains is expected to point to a 16 float long buffer. Output gains for the left input channel should be the first 8 values in Gains, and Output gains for the right input channel should be rest. NumFrames must be a multiple of 4. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::Mix2ChannelsTo4ChannelsFast | ( | const FAlignedFloatBuffer & | SourceBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 16 float long buffer. Output gains for the left input channel should be the first 8 values in Gains, and Output gains for the right input channel should be rest. NumFrames must be a multiple of 4. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::Mix2ChannelsTo6ChannelsFast | ( | const FAlignedFloatBuffer & | SourceBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 16 float long buffer. Output gains for the left input channel should be the first 8 values in Gains, and Output gains for the right input channel should be rest. NumFrames must be a multiple of 4. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::Mix2ChannelsTo8ChannelsFast | ( | const FAlignedFloatBuffer & | SourceBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 2 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 16 float long buffer. Output gains for the left input channel should be the first 8 values in Gains, and Output gains for the right input channel should be rest. these buffers must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::MixMonoTo2ChannelsFast | ( | const FAlignedFloatBuffer & | MonoBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 1 channel buffer and mixes it to a stereo buffer using Gains.
Gains is expected to point to a 2 float long buffer. these buffers must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::MixMonoTo4ChannelsFast | ( | const FAlignedFloatBuffer & | MonoBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 8 float long buffer. these buffers must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::MixMonoTo6ChannelsFast | ( | const FAlignedFloatBuffer & | MonoBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 8 float long buffer. these buffers must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API void Audio::MixMonoTo8ChannelsFast | ( | const FAlignedFloatBuffer & | MonoBuffer, |
| FAlignedFloatBuffer & | DestinationBuffer, | ||
| const float *RESTRICT | Gains | ||
| ) |
Takes a 1 channel buffer and mixes it to an 8 channel interleaved buffer using Gains.
Gains is expected to point to a 8 float long buffer. these buffers must have an even number of frames. If StartGains and EndGains are provided, this function will interpolate between the two across the buffer.
| SIGNALPROCESSING_API TUniquePtr< FContiguousSparse2DKernelTransform > Audio::NewPseudoConstantQKernelTransform | ( | const FPseudoConstantQKernelSettings & | InSettings, |
| const int32 | InFFTSize, | ||
| const float | InSampleRate | ||
| ) |
NewPseudoConstantQKernelTransform
This creates a new Pseudo Constant Q Kernel Transform. Pseudo Constant Q differs from standard Constant Q in that it applies a window to an existing DFT output as opposed to using a bank of filters. The use of an FFT speeds up the calculation but introduces some limitations in bandwidth due to the granularity of the DFT.
The resulting kernel will transform an array with (InFFTSize / 2 + 1) elements into an array with InSettings.NumBands elements.
InSettings controls the number of bands and band properties. InFFTSize controls the expected input size to the kernel. InSampleRate describes the sampling rate of the analyzed audio.
Returns a TUniquePtr to a FContiguousSparse2DKernelTransform.