Developer Documentation

MediaStream.AudioReadData

Warning

Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.

public virtual uint AudioReadData(float[] buffer)
public virtual uint AudioReadData(float[] buffer, int length)

Reads data from the audio stream.

Info

if IsPaused NOP

Parameters

NameTypeDescription
bufferSingle[]buffer to write into
lengthInt32bytes to read

Returns

TypeDescription
UInt32count of written bytes into buffer

Variants

AudioReadData(buffer)

public virtual uint AudioReadData(float[] buffer)

Reads data from the audio stream.

Warning

if IsPaused NOP

Parameters

NameTypeDescription
bufferSingle[]buffer to write into

Returns

TypeDescription
UInt32count of written bytes into buffer

AudioReadData(buffer, length)

public virtual uint AudioReadData(float[] buffer, int length)

Reads data from the audio stream.

Warning

if IsPaused NOP

Parameters

NameTypeDescription
bufferSingle[]buffer to write into
lengthInt32bytes to read

Returns

TypeDescription
UInt32count of written bytes into buffer