API reference

RawAudioClipStream Class

A data container that stores all data within a float buffer
Meta::Voice::Audio::RawAudioClipStream extends Meta.Voice.Audio.AudioClipStream.

Overview

Properties

float []
Sample buffer containing all raw float data

Public Member Functions

RawAudioClipStream
( int newChannels,
int newSampleRate,
float newStreamReadyLength,
int bufferLengthSeconds )
Generates sample buffer on construct
override void
AddSamples
( float [] samples,
int offset,
int length )
Adds an array of samples to the current stream

Details

Properties

float [] Meta.Voice.Audio.RawAudioClipStream.SampleBuffer
Sample buffer containing all raw float data

Member Functions

Meta.Voice.Audio.RawAudioClipStream.RawAudioClipStream
( int newChannels,
int newSampleRate,
float newStreamReadyLength,
int bufferLengthSeconds )
Generates sample buffer on construct
override void Meta.Voice.Audio.RawAudioClipStream.AddSamples
( float [] samples,
int offset,
int length )
Adds an array of samples to the current stream
Parameters
samples
A list of decoded floats from 0f to 1f
offset
The index of samples to begin adding from
length
The total number of samples that should be appended