Class AudioMixerBlock
Audio mixer block. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.
Inherited Members
Namespace: VisioForge.Core.MediaBlocks.AudioProcessing
Assembly: VisioForge.Core.dll
Syntax
public class AudioMixerBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals
Constructors
AudioMixerBlock(AudioMixerSettings)
Initializes a new instance of the AudioMixerBlock class.
Declaration
public AudioMixerBlock(AudioMixerSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioMixerSettings | settings | The settings. |
Properties
Input
Gets the first input.
Declaration
public override MediaBlockPad Input { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad | The input. |
Overrides
Inputs
Gets the inputs.
Declaration
public override MediaBlockPad[] Inputs { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad[] | The inputs. |
Overrides
Output
Gets the output.
Declaration
public override MediaBlockPad Output { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad | The output. |
Overrides
Outputs
Gets the outputs.
Declaration
public override MediaBlockPad[] Outputs { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad[] | The outputs. |
Overrides
Settings
Gets or sets the settings.
Declaration
public AudioMixerSettings Settings { get; set; }
Property Value
| Type | Description |
|---|---|
| AudioMixerSettings | The settings. |
Type
Gets the type.
Declaration
public override MediaBlockType Type { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockType | The type. |
Overrides
Methods
Build()
Builds this instance.
Declaration
public override bool Build()
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
CleanUp()
Cleans up.
Declaration
public void CleanUp()
CreateNewInput()
Creates the new input.
Declaration
public MediaBlockPad CreateNewInput()
Returns
| Type | Description |
|---|---|
| MediaBlockPad | MediaBlockPad. |
CreateNewInputLive()
Creates the new input (live).
Declaration
public MediaBlockPad CreateNewInputLive()
Returns
| Type | Description |
|---|---|
| MediaBlockPad | MediaBlockPad. |
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
Overrides
GetCore()
Gets core.
Declaration
public BaseElement GetCore()
Returns
| Type | Description |
|---|---|
| BaseElement | VisioForge.Core.GStreamer.Base.BaseElement. |
GetElement()
Gets the element.
Declaration
public Element GetElement()
Returns
| Type | Description |
|---|---|
| Element | Gst.Element. |
IsAvailable()
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
Declaration
public static bool IsAvailable()
Returns
| Type | Description |
|---|---|
| bool |
|
RemoveInputLive(MediaBlockPad)
Removes the input (live pipeline).
Declaration
public bool RemoveInputLive(MediaBlockPad blockPad)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaBlockPad | blockPad | The block pad. |
Returns
| Type | Description |
|---|---|
| bool |
|
SetMute(int, bool)
Mutes the stream.
Declaration
public void SetMute(int streamIndex, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | streamIndex | The stream index. |
| bool | value | The value. |
SetVolume(int, double)
Sets the stream volume.
Declaration
public void SetVolume(int streamIndex, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | streamIndex | The stream index. |
| double | value | The volume value [0.0..10.0]. |