Class HRTFRenderAudioEffect
- Namespace
- VisioForge.Core.Types.X.AudioEffects
- Assembly
- VisioForge.Core.dll
Head-Related Transfer Function (HRTF) spatial audio rendering effect from the rsaudiofx GStreamer plugin. Renders spatial audio using HRTF data for 3D positional audio. Implements the VisioForge.Core.Types.X.AudioEffects.BaseAudioEffect.
public class HRTFRenderAudioEffect : BaseAudioEffect, ISharedAudioEffectXInheritance
Implements
Inherited Members
Constructors
HRTFRenderAudioEffect(string, ulong, ulong, float)
Initializes a new instance of the VisioForge.Core.Types.X.AudioEffects.HRTFRenderAudioEffect class.
public HRTFRenderAudioEffect(string hrirFile, ulong interpolationSteps, ulong blockLength, float distanceGain)Parameters
hrirFilestring-
The path to the HRIR (Head-Related Impulse Response) file.
interpolationStepsulong-
The number of interpolation steps (default: 8).
blockLengthulong-
The block length for processing (default: 512).
distanceGainfloat-
The distance gain factor (default: 1.0).
HRTFRenderAudioEffect(string)
Initializes a new instance of the VisioForge.Core.Types.X.AudioEffects.HRTFRenderAudioEffect class with default values.
public HRTFRenderAudioEffect(string hrirFile)Parameters
hrirFilestring-
The path to the HRIR (Head-Related Impulse Response) file.
HRTFRenderAudioEffect()
Initializes a new instance of the VisioForge.Core.Types.X.AudioEffects.HRTFRenderAudioEffect class with empty HRIR file.
public HRTFRenderAudioEffect()Properties
BlockLength
Gets or sets the block length for processing. Determines the size of audio blocks processed at once. Default: 512.
public ulong BlockLength { get; set; }Property Value
DistanceGain
Gets or sets the distance gain factor. Controls how distance affects the audio volume. Default: 1.0.
public float DistanceGain { get; set; }Property Value
HrirFile
Gets or sets the path to the HRIR (Head-Related Impulse Response) file. This file contains the spatial audio data for HRTF rendering.
public string HrirFile { get; set; }Property Value
InterpolationSteps
Gets or sets the number of interpolation steps. Higher values provide smoother transitions but use more CPU. Default: 8.
public ulong InterpolationSteps { get; set; }