Class AudioTrackSink
An Android AudioTrack-based sink.
Inheritance
System.Object
MediaSink<IAudioOutput, IAudioOutputCollection, IAudioInput, AudioSink, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>
AudioTrackSink
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class AudioTrackSink : AudioSink, IAudioInput, IMediaInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AudioTrackSink(AudioConfig)
Initializes a new instance of the AudioTrackSink class.
Declaration
public AudioTrackSink(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The configuration. |
AudioTrackSink(IAudioOutput)
Initializes a new instance of the AudioTrackSink class.
Declaration
public AudioTrackSink(IAudioOutput input)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput | input | The input. |
AudioTrackSink(IAudioOutput[])
Initializes a new instance of the AudioTrackSink class.
Declaration
public AudioTrackSink(IAudioOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput[] | inputs | The inputs. |
Properties
AudioStreamType
Gets or Sets the desired audio stream type (AudioManager.STREAM_*). Defaults to AudioManager.STREAM_MUSIC.
Declaration
public Android.Media.Stream AudioStreamType { get; set; }
Property Value
Type | Description |
---|---|
Android.Media.Stream |
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()
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)
Declaration
protected override void DoProcessFrame(AudioFrame frame, AudioBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
AudioFrame | frame | |
AudioBuffer | inputBuffer |
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 length of the audio buffer in milliseconds.
Declaration
public static int getBufferDelay(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config |
Returns
Type | Description |
---|---|
System.Int32 |