Class AudioStreamSender
Attach AudioListerner or AudioSource
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.RenderStreaming
Syntax
[AddComponentMenu("Render Streaming/Audio Stream Sender")]
public class AudioStreamSender : StreamSenderBase, IStreamSender
Properties
audioListener
Declaration
public AudioListener audioListener { get; set; }
Property Value
Type | Description |
---|---|
AudioListener |
audioSource
Declaration
public AudioSource audioSource { get; set; }
Property Value
Type | Description |
---|---|
AudioSource |
codec
Declaration
public AudioCodecInfo codec { get; }
Property Value
Type | Description |
---|---|
AudioCodecInfo |
loopback
Play or not sending to remote audio in local.
Declaration
public bool loopback { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
maxBitrate
Declaration
public uint maxBitrate { get; }
Property Value
Type | Description |
---|---|
UInt32 |
minBitrate
Declaration
public uint minBitrate { get; }
Property Value
Type | Description |
---|---|
UInt32 |
source
Declaration
public AudioStreamSource source { get; set; }
Property Value
Type | Description |
---|---|
AudioStreamSource |
sourceDeviceIndex
The index of Microphone.devices.
Declaration
public int sourceDeviceIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetAvailableCodecs()
Declaration
public static IEnumerable<AudioCodecInfo> GetAvailableCodecs()
Returns
Type | Description |
---|---|
IEnumerable<AudioCodecInfo> |
SetBitrate(UInt32, UInt32)
Declaration
public void SetBitrate(uint minBitrate, uint maxBitrate)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | minBitrate | |
UInt32 | maxBitrate |
SetCodec(AudioCodecInfo)
Declaration
public void SetCodec(AudioCodecInfo codec)
Parameters
Type | Name | Description |
---|---|---|
AudioCodecInfo | codec |
SetData(NativeArray<Single>.ReadOnly, Int32)
Declaration
public void SetData(NativeArray<float>.ReadOnly nativeArray, int channels)
Parameters
Type | Name | Description |
---|---|---|
NativeArray.ReadOnly<> | nativeArray | |
Int32 | channels |