API reference

OVRHapticsClip Class

A PCM buffer of data for a haptics effect.

Properties

int Count[Get]
The current number of samples in the clip.
int Capacity[Get]
The maximum number of samples the clip can store.
byte[] Samples[Get]
The raw haptics data.

Member Functions

OVRHapticsClip ( )
OVRHapticsClip
( int capacity )
Creates a clip with the specified capacity.
OVRHapticsClip
( byte[] samples,
int samplesCount )
Creates a clip with the specified data.
OVRHapticsClip
Creates a clip by mixing the specified clips.
OVRHapticsClip
( AudioClip audioClip,
int channel )
Creates a haptics clip from the specified audio clip.
void WriteSample
( byte sample )
Adds the specified sample to the end of the clip.
void Reset ( )
Clears the clip and resets its size to 0.