This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.25 Reference Guide

OVRHapticsClip Class Reference

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.

Public Member Functions

OVRHapticsClip ( int capacity )
Creates a clip with the specified capacity.
OVRHapticsClip ( byte [] samples, int samplesCount )
Creates a clip with the specified data.
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.

Private Member Functions

void
InitializeFromAudioFloatTrack ( float [] sourceData, double sourceFrequency, int sourceChannelCount, int sourceChannel )

Property Documentation

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

Member Function Documentation

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

Object Data Documentation

void OVRHapticsClip.InitializeFromAudioFloatTrack ( float [] sourceData, double sourceFrequency, int sourceChannelCount, int sourceChannel )
The documentation for this class was generated from the following file: OVR/Scripts/OVRHapticsClip.cs