Room.SendAudio
public virtual void SendAudio(float[] samples, bool isSilent = false)
public virtual bool SendAudio(float[] samples, ushort mediaId, bool isSilent = false)
public virtual bool SendAudio(float[] samples, MediaEncoder encoder, bool isSilent = false)
Push the samples to all Room for pipeline processing and pop the result as datagrams to the server
Parameters#
Name | Type | Description |
---|
samples | Single[] | Audio data |
isSilent | Boolean | flag these samples as silence |
mediaId | UInt16 | input media id |
encoder | MediaEncoder | input media |
Returns#
Type | Description |
---|
Boolean | true on success or false |
Variants#
SendAudio(samples, isSilent)#
public virtual void SendAudio(float[] samples, bool isSilent = false)
Push the samples to all Room for pipeline processing and pop the result as datagrams to the server
Parameters#
Name | Type | Description |
---|
samples | Single[] | Audio data |
isSilent | Boolean | flag these samples as silence |
public virtual bool SendAudio(float[] samples, ushort mediaId, bool isSilent = false)
Push the samples to the input media for pipeline processing and pop the result as datagram to the server
Parameters#
Name | Type | Description |
---|
samples | Single[] | Audio data |
mediaId | UInt16 | input media id |
isSilent | Boolean | flag these samples as silence |
Returns#
Type | Description |
---|
Boolean | true on success or false |
SendAudio(samples, encoder, isSilent)#
public virtual bool SendAudio(float[] samples, MediaEncoder encoder, bool isSilent = false)
Push the samples to the input media for pipeline processing and pop the result as datagram to the server
Parameters#
Name | Type | Description |
---|
samples | Single[] | Audio data |
encoder | MediaEncoder | input media |
isSilent | Boolean | flag these samples as silence |
Returns#
Type | Description |
---|
Boolean | true on success or false |