Class AudioClipSink
An AudioClip-based audio sink.
Inheritance
System.Object
MediaSink<IAudioOutput, IAudioOutputCollection, IAudioInput, AudioSink, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>
AudioClipSink
Implements
Inherited Members
Namespace: FM.LiveSwitch.Unity
Assembly: FM.LiveSwitch.Unity.dll
Syntax
public class AudioClipSink : AudioSink, IAudioInput, IMediaInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AudioClipSink(AudioConfig)
Initializes a new instance of the AudioClipSink class.
Declaration
public AudioClipSink(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config |
AudioClipSink(AudioConfig, Int32)
Initializes a new instance of the AudioClipSink class.
Declaration
public AudioClipSink(AudioConfig config, int latency)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | |
System.Int32 | latency |
Fields
LATENCY
Latency on AudioClipSink.
Declaration
public static int LATENCY
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
GameObject
Gets the game object.
Declaration
public GameObject GameObject { get; }
Property Value
Type | Description |
---|---|
GameObject |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioOutputCollection, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.AudioSink, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.Label
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioOutputCollection, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.AudioSink, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoDestroy()
DoProcessFrame(AudioFrame, AudioBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(AudioFrame frame, AudioBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
AudioFrame | frame | The frame. |
AudioBuffer | inputBuffer | The input buffer. |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioOutputCollection, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.AudioSink, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoProcessFrame(FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer)
GetBufferDelay(AudioConfig)
Gets the buffer delay.
Declaration
public static int GetBufferDelay(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The config. |
Returns
Type | Description |
---|---|
System.Int32 |