int AddParametricEffect(double* _amplitude, int _amplitudeSize, double* _pitch, int _pitchSize, double _pitchMin, double _pitchMax, double* _transient, int _transientSize, bool _isLooping);
- Creates a haptic effect by processing parameters such as amplitude, pitch, and transients. This function generates a haptic effect based on the given input parameters and can optionally loop iy.
Parameters
double* _amplitude
: An array of amplitude values. The array should be formatted as Time – Value pairs, where each Value is between 0 and 1.int _amplitudeSize
: The size of the amplitude array.double* _pitch
: An array of pitch values. The array should be formatted as Time – Value pairs, where each Value is between 0 and 1.int _pitchSize
: The size of the pitch array.double _freqMin
: The minimum value for the frequency range.double _freqMax
: The maximum value for the frequency range.double* _transient
: An array of transient values. The array should be formatted as Time – Amplitude – Pitch triplets, with both Amplitude and Pitch values ranging between 0 and 1.int _transientSize
: The size of the transient array.bool _isLooping
: Indicates whether the audio effect should loop.
Returns
- ID of the haptic effect created.