Our new developer documentation is now available. Please check it out!
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
Name | Type | Description |
---|---|---|
buffer | Single[] | buffer to write into |
length | Int32 | bytes to read |
Returns
Type | Description |
---|---|
UInt32 | count 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
Name | Type | Description |
---|---|---|
buffer | Single[] | buffer to write into |
Returns
Type | Description |
---|---|
UInt32 | count 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
Name | Type | Description |
---|---|---|
buffer | Single[] | buffer to write into |
length | Int32 | bytes to read |
Returns
Type | Description |
---|---|
UInt32 | count of written bytes into buffer |