Developer Documentation

MediaStream.AudioReadDataTask

public virtual Task<uint> AudioReadDataTask(float[] buffer, CancellationToken cancellationToken)

Reads data from the audio stream.

Info

if IsPaused NOP

Parameters

NameTypeDescription
bufferSingle[]buffer to write into
cancellationTokenCancellationToken

Returns

TypeDescription
Task<UInt32>count of written bytes into buffer