Our new developer documentation is now available. Please check it out!
MediaStream.AudioReadDataTask
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 Task<uint> AudioReadDataTask(float[] buffer, CancellationToken cancellationToken)
Reads data from the audio stream.
Info
if IsPaused NOP
Parameters
Name | Type | Description |
---|---|---|
buffer | Single[] | buffer to write into |
cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
Task<UInt32> | count of written bytes into buffer |