Class AudioStreamReceiver
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 Receiver")]
public class AudioStreamReceiver : StreamReceiverBase, IStreamReceiver
Fields
OnUpdateReceiveAudioSource
Declaration
public AudioStreamReceiver.OnUpdateReceiveAudioSourceHandler OnUpdateReceiveAudioSource
Field Value
Type | Description |
---|---|
AudioStreamReceiver.OnUpdateReceiveAudioSourceHandler |
Properties
codec
Declaration
public AudioCodecInfo codec { get; }
Property Value
Type | Description |
---|---|
AudioCodecInfo |
targetAudioSource
Declaration
public AudioSource targetAudioSource { get; set; }
Property Value
Type | Description |
---|---|
AudioSource |
Methods
GetAvailableCodecs()
Declaration
public static IEnumerable<AudioCodecInfo> GetAvailableCodecs()
Returns
Type | Description |
---|---|
IEnumerable<AudioCodecInfo> |
SetCodec(AudioCodecInfo)
Declaration
public void SetCodec(AudioCodecInfo codec)
Parameters
Type | Name | Description |
---|---|---|
AudioCodecInfo | codec |