Class AudioTrackSink
An Android AudioTrack-based sink.
Inheritance
System.Object
MediaSink <IAudioOutput , IAudioOutputCollection , IAudioInput , AudioSink , AudioFrame , AudioBuffer , AudioBufferCollection , AudioFormat >
AudioTrackSink
Implements
Inherited Members
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 Audio
Declaration
public AudioTrackSink(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
Audio |
config | The configuration. |
AudioTrackSink(IAudioOutput)
Initializes a new instance of the Audio
Declaration
public AudioTrackSink(IAudioOutput input)
Parameters
Type | Name | Description |
---|---|---|
IAudio |
input | The input. |
AudioTrackSink(IAudioOutput[])
Initializes a new instance of the Audio
Declaration
public AudioTrackSink(IAudioOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IAudio |
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. |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|---|
Audio |
frame | |
Audio |
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 |
---|---|---|
Audio |
config |
Returns
Type | Description |
---|---|
System. |