API reference
API reference
Select your platform
No SDKs available
No versions available

OVRHapticsClip Class

A PCM buffer of data for a haptics effect.

Overview

Properties

int
Count[Get]
The current number of samples in the clip.
int
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.

Details

Properties

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 Functions

OVRHapticsClip.OVRHapticsClip ( )
No description available.
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
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon