Developer Documentation
Our new developer documentation is now available. Please check it out!

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

NameTypeDescription
samplesSingle[]Audio data
isSilentBooleanflag these samples as silence
mediaIdUInt16input media id
encoderMediaEncoderinput media

Returns

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

NameTypeDescription
samplesSingle[]Audio data
isSilentBooleanflag these samples as silence

SendAudio(samples, mediaId, isSilent)

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

NameTypeDescription
samplesSingle[]Audio data
mediaIdUInt16input media id
isSilentBooleanflag these samples as silence

Returns

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

NameTypeDescription
samplesSingle[]Audio data
encoderMediaEncoderinput media
isSilentBooleanflag these samples as silence

Returns

TypeDescription
Booleantrue on success or false