Developer Documentation
Our new developer documentation is now available. Please check it out!

MediaStream.AudioReadData

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