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
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 |